.paywall {
  min-height: 100vh; padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  color: #50353d; background: linear-gradient(180deg, #ffe4e9 0, #ffc4d0 18rem, #ffb9c9 72%, #ffacbf);
}
.gate-cover { position: relative; overflow: hidden; min-height: 12.6rem; isolation: isolate; }
.gate-picture { position: absolute; z-index: -1; inset: 0 -8% 0 auto; width: 58%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 20%); }
.gate-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 62%; }
.gate-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #ffe4e961, transparent 37%, transparent 74%, #ffc8d2); }
.gate-nav { position: relative; z-index: 1; width: fit-content; padding-left: 4.3%; }
.gate-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; color: #864357; text-underline-offset: .2em; }
.gate-intro { width: 58%; padding: .55rem 0 1.75rem 5%; }
.gate-intro h1 { font-size: clamp(1.5rem, calc(6.7 * var(--u)), 1.95rem); letter-spacing: -.025em; line-height: 1.25; color: #bb3657; font-weight: 750; }
.gate-intro h1:focus { outline: 0; }
.gate-intro p { margin-top: .55rem; font-size: .875rem; color: #894355; }
.gate-paper { position: relative; margin: .9rem 4.1% 0; padding: 0 4.1% 1rem; background: white; border-radius: 1rem; }
.pair-paper { margin-top: -.65rem; padding-top: .82rem; padding-bottom: .78rem; box-shadow: 0 2px 0 #dc8ea030; }
.gate-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pair-tile { min-width: 0; text-align: center; padding: .55rem .99rem; border-radius: .62rem; }
.pair-tile.his { background: #eaf1ff; color: #446fbb; }
.pair-tile.hers { background: #ffe7ec; color: #b34562; }
.pair-tile > span { display: block; font-size: .76rem; }
.pair-tile strong { display: block; margin-top: .12rem; font-size: 1.08rem; overflow-wrap: anywhere; }
.pair-seal { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 2rem; height: 2rem; border: 3px solid white; border-radius: 50%; background: #ffadbf; color: white; }
.pair-seal svg { width: 1.02rem; height: 1.02rem; }
.pair-insight { margin-top: .65rem; font-size: .88rem; line-height: 1.64; color: #73555d; }
.gate-ribbon { width: fit-content; max-width: 100%; margin: 0 auto .9rem; border-radius: 0 0 1.2rem 1.2rem; padding: .65rem 1.15rem .58rem; text-align: center; background: #fff0f1; color: #b93a53; font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.quote-block { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.price-caption { font-size: .84rem; font-weight: 650; color: #a43750; }
.gate-price { margin-top: .04rem; color: #cf344c; font: 750 2.28rem/1.1 "Trebuchet MS", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.price-compare { margin-top: .18rem; color: #896d73; font-size: .8rem; }
.price-compare s { text-decoration-thickness: 1px; }
.offer-clock { text-align: right; font-size: .8rem; color: #855064; }
.offer-clock time { display: block; margin-top: .28rem; color: #ac344e; font: 650 1.05rem/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.entitlement { border-top: 1px solid #f5e5e8; margin-top: .8rem; padding-top: .72rem; font-size: .9rem; line-height: 1.55; }
.wechat-button, .pay-dock button, #coupon-use {
  display: flex; justify-content: center; align-items: center; gap: .4em; width: 100%; min-height: 48px; padding: .58rem .65rem;
  border-radius: 999px; border: none; font-size: 1.05rem; line-height: 1.35; font-weight: 680; text-align: center;
}
.wechat-button { margin-top: .75rem; background: #168544; color: white; }
.wechat-button:active { background: #106e37; }
.wechat-button svg { width: 1.5rem; height: 1.35rem; }
.demo-note { margin-top: .42rem; color: #806970; font-size: .78rem; line-height: 1.5; text-align: center; }
.ticket-link { display: block; margin: .25rem auto -.35rem; min-height: 44px; padding: .25rem .6rem; font-size: .86rem; color: #a43345; text-decoration: underline; text-underline-offset: .22em; }
.preview-paper {
  --letter-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  margin: 1rem 2.7% 0; padding: 1.3rem .62rem .65rem;
  background: #fffaf9; border: 1px solid #ffefed; border-radius: 1.25rem;
  box-shadow: 0 5px 18px #a2476020;
}
.preview-cover { padding: 0 .52rem; }
.preview-cover h2 {
  color: #743246; text-align: center; letter-spacing: .075em;
  font: 700 1.4rem/1.5 var(--letter-serif);
}
.locked-score {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem;
  margin: .9rem 0 1.05rem; padding: .65rem .85rem;
  border-block: 1px solid #ebd9d6; color: #734655;
}
.locked-score strong { display: block; font-size: 1rem; }
.score-hint { display: block; margin-top: .13rem; color: #806572; font-size: .8125rem; }
.locked-stars { font-size: 1.25rem; line-height: 1; letter-spacing: .05em; color: #966071; white-space: nowrap; }
.locked-list, .other-questions { margin: 0; padding: 0; list-style: none; }
.locked-list { display: grid; gap: .85rem; }
.preview-card {
  --paper-light: #fff6f5; --paper-tint: #f3e1e6; --paper-line: #e9cbd3;
  position: relative; isolation: isolate; overflow: hidden; border-radius: .95rem;
  background: linear-gradient(135deg, var(--paper-light), var(--paper-tint));
  border: 1px solid var(--paper-line); box-shadow: inset 0 1px 0 #ffffffc9;
}
.preview-card:nth-child(even) { --paper-light: #fff8f2; --paper-tint: #f5e6df; --paper-line: #ead5cc; }
.preview-card::before {
  content: ""; position: absolute; z-index: -1; top: -1.6rem; right: -1.4rem; width: 5.1rem; height: 5.1rem;
  border-radius: 50%; border: 1px solid var(--paper-line); box-shadow: 0 0 0 .24rem var(--paper-light), 0 0 0 calc(.24rem + 1px) var(--paper-line);
  opacity: .65; pointer-events: none;
}
.preview-card-title {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1.04rem .6rem .2rem; text-align: center; color: #923d54;
  font: 700 1.23rem/1.48 var(--letter-serif); letter-spacing: .055em;
}
.heart-rule { display: inline-flex; align-items: center; gap: .35rem; flex: none; color: #c87588; }
.heart-rule::before { content: ""; width: 1.24rem; height: 1px; background: linear-gradient(90deg, transparent, #c98c99); }
.heart-rule:last-child { transform: scaleX(-1); }
.heart-rule svg { width: .56rem; height: .56rem; }
.preview-sheets { position: relative; overflow: hidden; padding: 1.22rem .94rem 1.22rem; }
.preview-ghost {
  position: absolute; inset: .02rem .72rem; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; color: #84646a; opacity: .41; filter: blur(2.45px);
  font: 400 .85rem/1.7 var(--letter-serif); text-align: justify; pointer-events: none; user-select: none;
}
.preview-note {
  position: relative; padding: 1.12rem .84rem .15rem; text-align: center;
  border: 1px solid #fffdf9; border-radius: .28rem .85rem .68rem .68rem;
  background: linear-gradient(155deg, #fff, #fffdfb); color: #49313a;
  box-shadow: 0 5px 10px #67344410, 0 1px 2px #67344414;
}
.preview-note::after {
  content: ""; position: absolute; inset: -1px -1px auto auto; width: .77rem; height: .77rem;
  background: linear-gradient(45deg, #f2dfd7 42%, #e6cec6 49%, var(--paper-tint) 51%);
  border-radius: 0 .12rem 0 .2rem; pointer-events: none;
}
.lead-question { font-size: 1.075rem; font-weight: 650; line-height: 1.58; text-wrap: balance; }
.other-questions { display: grid; gap: .24rem; margin: .43rem 0 0; color: #65505a; }
.other-questions li { font-size: 1rem; line-height: 1.52; text-wrap: pretty; }
.lead-question > span, .other-questions li > span { display: inline-block; max-width: 100%; vertical-align: top; }
.chapter-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .32rem;
  min-height: 44px; margin: .62rem auto 0; padding: .3rem .8rem; border-radius: .4rem;
  font-size: .875rem; font-weight: 600; color: #93465f;
}
.chapter-link::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 1px;
  background: linear-gradient(90deg, transparent, #e0bcc4 25%, #e0bcc4 75%, transparent);
}
.chapter-link .icon { width: .91rem; height: .91rem; }
.chapter-link:active { background: #f9eaee; }
@media (hover: hover) {
  .chapter-link:hover { background: #fdf1f4; }
}
.leave-gate, .text-exit, .packet-exit { display: block; min-height: 44px; padding: .3rem .55rem; margin: .55rem auto 0; text-decoration: underline; text-underline-offset: .18em; font-size: .9rem; }
.leave-gate { color: #80465a; }
.pay-dock {
  position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--phone));
  padding: .46rem min(4%, 18px) max(.52rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ecd3d9; background: #fff9f8f7; box-shadow: 0 -4px 16px #81334c12;
}
.pay-dock button {
  gap: .45rem; min-height: 50px; color: white; background: linear-gradient(110deg, #b33351, #c6405d 64%, #ac2d4b);
  box-shadow: inset 0 1px 0 #ffffff3b, 0 2px 6px #95354f28;
}
.pay-dock button .icon { width: 1rem; height: 1rem; }
.pay-dock strong { margin-left: .2rem; padding-left: .72rem; border-left: 1px solid #ffffff73; font-variant-numeric: tabular-nums; }
.pay-dock button:active { background: #a32c47; }
body.purchase-open { overflow: hidden; }
.buy-dialog, .packet-dialog { border: 0; padding: 0; max-height: 88vh; max-height: 88dvh; max-width: min(91vw, 405px); }
.buy-dialog::backdrop, .packet-dialog::backdrop { background: rgb(53 28 36 / 57%); }
.checkout-sheet { padding: .55rem 1.1rem .65rem; }
.checkout-sheet header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.checkout-sheet h2 { color: #82374d; font-size: 1.2rem; }
.checkout-names { margin-top: .25rem; color: #825663; overflow-wrap: anywhere; }
.checkout-lines { margin: 1rem 0 .7rem; }
.checkout-lines > div { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; }
.checkout-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
#coupon-line { color: #a5384c; }
.checkout-lines .total-line { padding-top: .8rem; margin-top: .3rem; border-top: 1px dashed #e5c2cc; align-items: baseline; }
.total-line dd { font-size: 1.55rem; font-weight: 750; color: #b33350; }
.quote-change { font-size: .88rem; line-height: 1.5; color: #a52640; }
.text-exit { color: #835361; }
.packet-dialog { width: min(84vw, 345px); background: transparent; border-radius: 1.4rem; box-shadow: 0 16px 60px #43233258; }
.packet { position: relative; overflow: hidden; isolation: isolate; padding: 1.05rem .85rem .25rem; border-radius: 1.4rem; text-align: center; color: white; background: linear-gradient(140deg,#d22d47,#d90035 58%,#f13557); }
.packet::before { content: ""; position: absolute; z-index: -1; inset: .4rem .45rem; border: 1px solid #ffae806b; border-radius: 1rem; }
.packet-paper { position: relative; padding: 1.6rem .65rem 2.05rem; border-radius: .9rem .9rem 49% 49% / .9rem .9rem 12% 12%; color: #9f3a1a; background: linear-gradient(145deg,#fffdf0,#fff3d7 48%,#ffcf9b); border-bottom: .38rem solid #f8b058; box-shadow: 0 5px 12px #af203e3b; }
.packet-paper::before { content: ""; position: absolute; inset: .45rem .42rem auto; height: 1.4rem; border: 1px solid #e9b989; border-bottom: 0; border-radius: .55rem .55rem 0 0; }
.packet-paper h2 { position: relative; font-size: 1.48rem; color: #a95612; }
.packet-amount { margin: .54rem 0 .55rem; color: #ce1434; font: 750 clamp(3.1rem,15vw,4.25rem)/1 "Trebuchet MS", Arial, sans-serif; }
.packet-amount span { font-size: .46em; font-weight: 650; }
.packet-rule { display: inline-block; padding: .3rem .6rem; border: 1px solid #e6b980; border-radius: .25rem; color: #814719; background: #ffe2b8; font-size: .83rem; }
.packet-after { font-size: .87rem; margin-top: .55rem; }
.packet-front { padding: .82rem .6rem .18rem; }
.packet-clock { color: #fff4dd; font-size: .86rem; font-variant-numeric: tabular-nums; }
#coupon-use { margin-top: .72rem; color: #743500; background: linear-gradient(#fff6ce, #ffcd79 80%, #ffbb5c); box-shadow: 0 3px 0 #a73024; }
#coupon-use:disabled { color: #796358; background: #f5e2cc; cursor: default; }
.packet-exit { margin-top: .26rem; color: white; }
@media (max-width: 345px) {
  .gate-intro { width: 62%; }
  .gate-cover { min-height: 11.65rem; }
  .gate-ribbon { font-size: 1rem; }
  .wechat-button { font-size: 1rem; }
}
