
  :root { --start:#ff2a6d; --end:#9b51e0; --ink:#0f0817; --ink2:#2d0a24; }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; background: #000; color: #fff; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

  button, input { font: inherit; color: inherit; }
  body { display: flex; justify-content: center; }
  .phone { width: min(430px, 100%); height: 100%; position: relative; overflow: hidden; background: var(--ink); }
  @media (min-width: 520px) {
    body { align-items: center; }
    .phone { width: 430px; height: min(100dvh, 932px); border-radius: 36px; box-shadow: 0 0 0 12px #141414, 0 28px 70px rgba(0,0,0,.55); flex: none; container-type: size; }
    .feed .hero { max-height: 42cqh; }
    .banner { height: 46cqh; }
    #matchIntro .intro-hero { height: 26cqh; }
  }
  .flow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 18% 12%, var(--ink2) 0%, transparent 46%), radial-gradient(circle at 82% 0%, #4a1238 0%, transparent 42%), var(--ink); }
  .flow span { position: absolute; width: 18rem; height: 18rem; border-radius: 999px; filter: blur(36px); opacity: .22; }
  .flow span:nth-child(1) { top: -22%; left: -18%; background: #6b1d4a; animation: fa 18s ease-in-out infinite; }
  .flow span:nth-child(2) { right: -24%; bottom: -18%; background: #3d1238; animation: fb 22s ease-in-out infinite; }
  .flow span:nth-child(3) { top: 28%; left: 22%; background: #9b51e0; opacity: .7; animation: fc 16s ease-in-out infinite; }
  .flow span:nth-child(4) { top: 8%; right: 6%; width: 12rem; height: 12rem; background: #ff2a6d; animation: fd 26s ease-in-out infinite; }
  @keyframes fa { 50% { transform: translate3d(40px, 24px, 0) scale(1.18); } }
  @keyframes fb { 50% { transform: translate3d(-36px, -28px, 0) scale(.92); } }
  @keyframes fc { 50% { transform: translate3d(-20px, 30px, 0) scale(1.22); } }
  @keyframes fd { 50% { transform: translate3d(-24px, 36px, 0) scale(1.3); } }
  .screen { position: relative; z-index: 1; height: 100%; overflow: auto; padding: 0 16px 128px; }
  header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; background: linear-gradient(#0f0817, #0f0817ee 72%, transparent); }
  .brand { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; min-width: 0; }
  .g { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, var(--start), var(--end)); flex: none; }
  .word { font-size: 16px; font-weight: 650; white-space: nowrap; letter-spacing: 0; }
  h1 { margin: 0; text-align: center; font-size: 14px; }
  .iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: transparent; color: #007aff; display: grid; place-items: center; }
  .iconbtn svg { width: 20px; height: 20px; }
  .tools { display: flex; gap: 6px; position: relative; }
  #langList { display: none; position: absolute; right: 0; top: 48px; width: 200px; max-height: 360px; overflow: auto; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; z-index: 8; padding: 4px 0; }
  #langList.show { display: block; }
  #langList button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 14px; }
  #langList button.on { background: rgba(255,255,255,.2); }
  h2.lead { text-align: center; font-size: 26px; line-height: 1.25; margin: 8px 0; }
  .sub { text-align: center; color: rgba(255,255,255,.72); font-size: 13px; margin: 0 0 8px; }
  .view { display: none; } .view.on { display: block; }
  .glass { width: 86%; margin: 12px auto; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 28px; padding: 16px; backdrop-filter: blur(20px); }
  .field { position: relative; }
  input[type="text"], .comments input, #draft { width: 100%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px 44px 12px 14px; }
  #gps { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; }
  #gps svg { width: 20px; height: 20px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .chip, .tags span, .pill { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
  .chip.on { background: rgba(255,255,255,.25); border-color: #fff; }
  .tags span { box-shadow: 0 0 12px rgba(255,42,109,.28); }
  .cta { width: 100%; margin-top: 16px; border: 0; border-radius: 999px; padding: 13px; font-weight: 700; cursor: pointer; background: linear-gradient(90deg, var(--start), var(--end)); animation: pulse 1.8s ease-in-out infinite; }
  .cta:hover { transform: scale(1.02); }
  @keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,42,109,0); } }
  .stack { position: relative; width: 86%; margin: 12px auto 0; }
  .under { position: absolute; inset: 0 auto auto 0; width: 100%; height: 320px; object-fit: cover; object-position: center 28%; border-radius: 28px; }
  .under.u1 { transform: translateY(-12px) scale(.965); } .under.u2 { transform: translateY(-24px) scale(.93); }
  #front { position: relative; z-index: 2; touch-action: none; }
  .person, .feed, .tile { background: #211c18; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; overflow: hidden; }
  .shot { position: relative; }
  .shot img, .feed .hero, .tile img, .banner .full { width: 100%; display: block; object-fit: cover; object-position: center 28%; }
  .shot img { height: 320px; cursor: zoom-in; } .feed .hero { max-height: 42vh; aspect-ratio: 4/5; cursor: zoom-in; } .tile img { aspect-ratio: 3/4; }
  .pad { padding: 12px 14px 16px; } .pad h2 { margin: 0; font-size: 28px; }
  .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #3b82f6; font-size: 11px; box-shadow: 0 0 10px rgba(59,130,246,.7); }
  .muted { color: rgba(255,255,255,.65); font-size: 13px; }
  .pin { display: flex; align-items: center; gap: 4px; } .pin svg { width: 14px; height: 14px; }
  .tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .nudge { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
  .nudge.left { left: 8px; animation: nl 1.1s ease-in-out infinite; } .nudge.right { right: 8px; animation: nr 1.1s ease-in-out infinite; }
  .nudge svg, .arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; }
  @keyframes nl { 50% { transform: translateX(-4px); } } @keyframes nr { 50% { transform: translateX(4px); } }
  .actions { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; }
  .act { width: 56px; height: 56px; border: 0; border-radius: 50%; color: #fff; font-size: 20px; }
  .act.pass { background: #2c2a33; } .act.super { background: #123a66; box-shadow: 0 0 18px rgba(59,130,246,.75); }
  .act.like { width: 64px; height: 64px; font-size: 24px; background: linear-gradient(135deg, var(--start), var(--end)); box-shadow: 0 0 22px rgba(255,42,109,.55); }
  #dock { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 12; display: grid; grid-template-columns: repeat(4,1fr); padding: 8px; border-radius: 28px; background: rgba(18,12,28,.85); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px); }
  #dock button { background: none; border: 0; color: rgba(255,255,255,.4); font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  #dock button.on { color: #fff; }
  #dock button.on .ico { background: linear-gradient(135deg, var(--start), var(--end)); box-shadow: 0 0 16px rgba(255,42,109,.55); color: #fff; }
  .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; }
  .ico svg { width: 20px; height: 20px; }
  #dock button.held .ico:after { content: ""; position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #120c1c url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>") center/12px no-repeat; }
  #lockHint, #answerHint { display: none; position: absolute; left: 16px; right: 16px; z-index: 14; background: rgba(0,0,0,.72); border-radius: 16px; padding: 8px 12px; text-align: center; font-size: 12px; }
  #lockHint { bottom: 108px; } #answerHint { top: 78px; z-index: 34; }
  #lockHint.show, #answerHint.show { display: block; }
  .mask { position: absolute; inset: 0; display: none; z-index: 20; }
  .mask.show { display: flex; }
  #splash, #searching, #claim { align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; flex-direction: column; }
  .flowcard { width: min(340px, 100%); border-radius: 28px; padding: 40px 20px; text-align: center; position: relative; overflow: hidden; background: radial-gradient(circle at 20% 20%, #ff8ab8 0%, transparent 42%), radial-gradient(circle at 80% 10%, #ff5c98 0%, transparent 36%), #ff4f93; }
  .flowcard .blob { position: absolute; border-radius: 999px; filter: blur(18px); opacity: .9; }
  .float { position: absolute; width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); filter: blur(2px); animation: drift 2.4s ease-in-out infinite; }
  @keyframes drift { 50% { transform: scale(1.08); opacity: .85; } }
  #dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; position: relative; }
  #dots i { width: 24px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); display: block; }
  #dots i.on { background: #fff; }
  #sheet { align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); padding: 0 16px 108px; }
  .panel { width: min(360px, 100%); background: #16141c; border-radius: 28px; padding: 22px 18px 18px; text-align: center; position: relative; }
  .arrows { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
  .arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; animation: bounce .85s ease-in-out infinite; }
  .arrow.l { background: #2c2a33; } .arrow.r { background: #5c2438; animation-delay: .2s; }
  @keyframes bounce { 50% { transform: translateY(-10px); } }
  .bounce { animation: bounce .85s ease-in-out infinite; }
  #profile { position: absolute; inset: 0; z-index: 17; display: none; flex-direction: column; overflow: auto; background: #111; color: #fff; }
  #profile.show { display: flex; }
  .prof-bar { display: flex; height: 48px; flex: none; align-items: center; justify-content: space-between; padding: 0 8px; }
  .prof-bar button, .msg-btn { background: none; border: 0; color: #fff; }
  .prof-bar button { width: 44px; height: 44px; font-size: 28px; }
  .dots { margin-right: 12px; color: rgba(255,255,255,.8); font-size: 22px; letter-spacing: 2px; }
  .prof-head { display: flex; gap: 16px; padding: 8px 20px 20px; }
  .prof-head img { width: 64px; height: 64px; flex: none; border-radius: 6px; object-fit: cover; object-position: center 28%; }
  .prof-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 22px; }
  .grey { margin: 8px 0 0; color: #9a9a9a; font-size: 15px; }
  .hair { height: 1px; margin: 0 20px; background: rgba(255,255,255,.1); }
  .prof-row { display: flex; width: 100%; align-items: flex-start; gap: 12px; border: 0; background: none; color: #fff; padding: 16px 20px; text-align: left; }
  .prof-row b { font-size: 17px; font-weight: 500; }
  .chev { color: rgba(255,255,255,.35); font-size: 22px; }
  .thumbs { display: flex; gap: 6px; margin-left: auto; }
  .thumbs img { width: 48px; height: 48px; object-fit: cover; }
  .bio-line { display: -webkit-box; margin-top: 4px; overflow: hidden; color: #8a8a8a; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .bio-line.open { display: block; -webkit-line-clamp: unset; }
  .msg-btn { margin-top: auto; padding: 32px 0 28px; color: #8ea0b8; font-size: 17px; }
  .prof-actions { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 36px 20px 28px; }
  .prof-actions .msg-btn { margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #8ea0b8; font-size: 17px; text-decoration: none; }
  .prof-actions svg { width: 20px; height: 20px; }
  #moments { position: absolute; inset: 0; z-index: 18; background: #111; overflow: auto; display: none; }
  #moments.show { display: block; }
  .banner { height: 46vh; min-height: 240px; position: relative; }
  .banner .full { height: 100%; }
  .id { position: absolute; right: 16px; bottom: 0; transform: translateY(50%); display: flex; align-items: flex-end; gap: 10px; }
  .badge { width: 68px; height: 68px; border-radius: 8px; object-fit: cover; object-position: center 28%; }
  .back { position: absolute; left: 8px; top: 8px; background: none; border: 0; color: #fff; font-size: 32px; z-index: 2; }
  .timeline { list-style: none; margin: 0; padding: 56px 16px 32px; }
  .timeline li { display: flex; gap: 12px; margin-bottom: 18px; }
  .timeline img { width: 74px; height: 74px; object-fit: cover; cursor: zoom-in; }
  #light { background: rgba(0,0,0,.88); align-items: center; justify-content: center; z-index: 40; }
  #light img { max-width: 92%; max-height: 86%; }
  #call { position: absolute; left: 12px; right: 12px; top: 14px; background: #211c18; border-radius: 999px; display: none; align-items: center; gap: 8px; padding: 6px 8px; z-index: 32; box-shadow: 0 12px 32px rgba(0,0,0,.35); animation: drop .55s cubic-bezier(.16,.84,.28,1); }
  #call.show { display: flex; }
  @keyframes drop { from { transform: translateY(-140%); } }
  #call img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
  #call span { flex: 1; text-align: center; font-size: 13px; }
  .dot { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; pointer-events: none; }
  #call .dot { flex: 0 0 42px; width: 42px; height: 42px; }
  #call .dot.yes { pointer-events: auto; cursor: pointer; padding: 0; }
  .dot svg { width: 20px; height: 20px; }
  .no { background: #ef3b2f; } .yes { background: #2ebd4f; }
  #claim { z-index: 30; }
  #igJump { z-index: 36; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
  #igJump .panel { width: min(320px, 86%); height: auto; flex: none; text-align: center; }
  #igClose { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
  #igClose[hidden] { display: none; }
  #liked { z-index: 34; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
  #liked .panel { width: min(320px, 86%); height: auto; flex: none; }
  #liked img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
  #likedName { margin: 12px 0 8px; font-size: 20px; font-weight: 700; }
  #likedText { margin: 0; line-height: 1.5; }
  #igTitle { margin: 18px 0 0; font-size: 16px; }
  #igGo:disabled { opacity: .4; pointer-events: none; cursor: default; animation: none; }
  #igHuman { z-index: 38; align-items: stretch; justify-content: flex-start; background: #fff; color: #111; padding: 0; }
  #igHuman .human-box { width: 100%; height: 100%; background: #fff; color: #111; overflow: auto; padding: 18px 14px 22px; }
  #igHuman h2 { margin: 0 0 8px; font-size: 18px; color: #111; font-weight: 700; }
  #igHuman .human-q { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #222; }
  #igHuman .human-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #igHuman .human-grid button { padding: 0; border: 3px solid #e5e5e5; background: #f5f5f5; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
  #igHuman .human-grid button.on { border-color: #1a73e8; box-shadow: inset 0 0 0 2px #1a73e8; }
  #igHuman .human-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
  #igHuman .human-err { min-height: 20px; margin: 8px 0; color: #c5221f; font-size: 13px; }
  #igHuman .human-next { width: 100%; border: 0; border-radius: 8px; padding: 12px; font-weight: 700; background: #1a73e8; color: #fff; }
  #igHuman .human-next:disabled { opacity: .4; }
  #igHuman .human-slide { position: relative; height: 54px; margin-top: 28px; border-radius: 999px; background: #eee; touch-action: none; }
  #igHuman .human-slide span { position: absolute; inset: 0; display: grid; place-items: center; color: #666; font-size: 13px; pointer-events: none; }
  #igHuman .human-thumb { position: absolute; left: 4px; top: 4px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #1a73e8; color: #fff; font-size: 20px; cursor: grab; }
  #igHuman .human-spin { width: 44px; height: 44px; margin: 48px auto 16px; border: 4px solid #e5e5e5; border-top-color: #1a73e8; border-radius: 50%; animation: humanSpin .75s linear infinite; }
  #igHuman .human-pass { text-align: center; color: #111; font-size: 16px; font-weight: 650; padding: 0 18px; }
  @keyframes humanSpin { to { transform: rotate(360deg); } }
  .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; margin: 18px 0; }
  .bar span { display: block; height: 100%; width: 0; background: var(--start); animation: fill 5s linear forwards; }
  @keyframes fill { to { width: 100%; } }
  .ring { width: 128px; height: 128px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; border: 6px solid rgba(255,255,255,.35); font-size: 40px; font-weight: 700; position: relative; }
  #splashGo:disabled { opacity: .5; animation: none; }
  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { text-align: left; padding: 0; width: 100%; }
  .who { display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 0; text-align: left; }
  .who img, #threads img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
  .who img { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
  .feed { margin-bottom: 12px; }
  .row, .comments form, #send { display: flex; gap: 8px; }
  .ghost { border: 1px solid rgba(255,255,255,.16); background: transparent; border-radius: 999px; padding: 8px 14px; }
  .comments { margin-top: 10px; }
  .comments button, #send button { border: 0; border-radius: 999px; padding: 10px 14px; background: linear-gradient(90deg, #ff2d7b, #c026ff); }
  .link { background: none; border: 0; color: rgba(255,255,255,.7); }
  #threads { display: flex; gap: 8px; overflow: auto; scrollbar-width: none; }
  #threads::-webkit-scrollbar { display: none; }
  #threads button { width: 48px; height: 48px; border-radius: 50%; padding: 0; border: 1px solid rgba(255,255,255,.2); background: #211c18; position: relative; flex: none; }
  #threads button.on { box-shadow: 0 0 0 2px #fff; }
  #threads i { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #2ebd4f; border: 2px solid #120c1c; }
  #matchIntro { position: absolute; inset: 0; z-index: 17; display: none; flex-direction: column; background: #111; color: #fff; }
  #matchIntro.show { display: flex; }
  #matchIntro .intro-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
  #matchIntro .intro-hero { width: 100%; height: 26vh; min-height: 150px; object-fit: cover; object-position: center 22%; display: block; cursor: zoom-in; }
  #matchIntro .intro-pad { padding: 10px 20px 18px; }
  #matchIntro .intro-pad h2 { margin: 0; font-size: 26px; }
  #matchIntro .intro-block { margin: 10px 0 0; }
  #matchIntro .intro-block h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.5); font-weight: 650; }
  #matchIntro .intro-block p { margin: 0; line-height: 1.55; font-size: 15px; }
  #matchIntro .intro-chat { flex: none; padding: 10px 20px 22px; background: linear-gradient(transparent, #111 28%); }
  #matchIntro .intro-chat button { width: 100%; border: 0; border-radius: 999px; padding: 14px; font-weight: 700; background: linear-gradient(90deg, var(--start), var(--end)); }
  #chat.view.on { position: absolute; z-index: 2; left: 16px; right: 16px; top: 56px; bottom: 116px; display: flex; flex-direction: column; overflow: hidden; }
  #log { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  #log::before { content: ""; flex: 1 0 auto; min-height: 0; }
  #log p { flex: none; background: rgba(18,12,28,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 12px; width: fit-content; max-width: 80%; }
  #log p.mine { margin-left: auto; background: linear-gradient(135deg, var(--start), var(--end)); border: 0; }
  #send { flex: none; margin-top: 12px; } #draft { padding-right: 14px; }
  .chatbox { margin-top: 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .chatbox .pad { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .chatbox h2, .chatbox .pill { flex: none; }
