:root {
  --pink: #f63287;
  --pink-deep: #e91f76;
  --pink-soft: #ffe3f0;
  --pink-pale: #fff5fa;
  --purple: #7f55f5;
  --green: #10b75a;
  --orange: #ef8a27;
  --ink: #201d24;
  --muted: #746c78;
  --subtle: #a097a3;
  --line: rgba(246, 50, 135, .18);
  --surface: rgba(255, 255, 255, .88);
  --shadow: 0 18px 45px rgba(199, 59, 119, .13);
  --shadow-soft: 0 8px 24px rgba(130, 58, 92, .08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --home-header-height: 64px;
  --quiz-header-height: 60px;
}

* {
  box-sizing: border-box;
}

html {
  background: #f8eef5;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 202, 226, .8), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(203, 185, 255, .34), transparent 24rem),
    #fff8fb;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(127, 85, 245, .3);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.app {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 207, 230, .58), transparent 18rem),
    linear-gradient(180deg, #fffafd 0%, #fff4f9 52%, #fdf7ff 100%);
  box-shadow: 0 0 70px rgba(76, 42, 61, .14);
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 18px calc(34px + env(safe-area-inset-bottom));
  animation: screen-in .24s ease;
}

.screen.active {
  display: block;
}

.screen[data-screen="home"] {
  padding-top: calc(var(--home-header-height) + env(safe-area-inset-top));
}

.screen[data-screen="quiz"] {
  padding-top: calc(var(--quiz-header-height) + env(safe-area-inset-top) + 12px);
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

@keyframes screen-in {
  from {
    opacity: .3;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand-bar,
.page-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, 430px);
  height: calc(var(--home-header-height) + env(safe-area-inset-top));
  min-height: 0;
  padding: env(safe-area-inset-top) 18px 0;
  background: rgba(255, 249, 252, .9);
  border-bottom: 1px solid rgba(246, 50, 135, .1);
  box-shadow: 0 8px 24px rgba(130, 58, 92, .07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  mix-blend-mode: multiply;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 17px;
  font-weight: 900;
}

.brand span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.text-button.accent {
  color: var(--pink);
}

.text-button.icon-back {
  position: relative;
  font-size: 0;
}

.text-button.icon-back::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border: solid var(--ink);
  border-width: 0 0 3px 3px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.hero {
  position: relative;
  min-height: 370px;
  margin: 2px -18px 14px;
  overflow: hidden;
}

.hero::before,
.urgent-hero::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -88px;
  top: 26px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .16);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 18px 18px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 850;
}

.hero h1 {
  position: relative;
  max-width: 310px;
  margin: 14px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 10.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.hero h1 em {
  color: var(--pink);
  font-style: normal;
}

.hero-copy > p {
  position: relative;
  z-index: 2;
  width: 240px;
  max-width: 100%;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-photo {
  position: absolute;
  z-index: 1;
  right: -58px;
  bottom: 30px;
  width: 264px;
  height: 325px;
  overflow: hidden;
  border-radius: 52% 0 0 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 42%;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(280px, 74%);
}

.hero-actions .button {
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.button {
  width: 100%;
  min-height: 54px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.button:active {
  transform: scale(.985);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.button.primary {
  color: white;
  background: linear-gradient(110deg, #ff559a 0%, var(--pink) 58%, var(--pink-deep) 100%);
  box-shadow: 0 14px 28px rgba(246, 50, 135, .27);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
}

.button.wechat {
  margin-top: 14px;
  color: white;
  background: linear-gradient(110deg, #21cf6d, #08ae4c);
  box-shadow: 0 12px 25px rgba(16, 183, 90, .2);
}

.card {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.archive-card {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding: 16px;
  background: rgba(255, 255, 255, .96);
}

.archive-label {
  gap: 6px;
  padding-left: 7px;
}

.archive-label img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 8px;
  mix-blend-mode: multiply;
}

.archive-card h2,
.photo-intro h2,
.gate-card h2,
.plan-cta h2 {
  margin: 11px 0 6px;
  font-size: 21px;
  line-height: 1.32;
}

.archive-card > p,
.photo-intro p,
.gate-card p,
.plan-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.feature-grid article {
  min-width: 0;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid rgba(246, 50, 135, .12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .75);
}

.feature-grid img {
  width: 60px;
  height: 60px;
  margin: 0 auto 7px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.feature-grid b,
.feature-grid span {
  display: block;
}

.feature-grid b {
  font-size: 13px;
}

.feature-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.privacy-line,
.medical-note {
  display: block;
  margin: 12px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}

.privacy-line a {
  color: var(--pink-deep);
  font-weight: 800;
  text-decoration: none;
}

.return-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 141, 193, .2), transparent 180px),
    rgba(255, 255, 255, .88);
}

.return-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar-image {
  width: 84px;
  height: 100px;
  object-fit: cover;
  object-position: 62% 28%;
  border: 4px solid white;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.return-head h1 {
  margin: 8px 0 4px;
  font-size: 25px;
  line-height: 1.25;
}

.return-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink);
  background: white;
  font-size: 11px;
  font-weight: 850;
}

.today-panel {
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
}

.today-panel b,
.today-panel span {
  display: block;
}

.today-panel span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.history-card {
  margin-top: 14px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  text-align: left;
}

.history-item span,
.history-item b,
.history-item em,
.history-item i {
  display: block;
}

.history-item b {
  font-size: 15px;
}

.history-item em,
.history-item i,
.history-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.history-item i {
  color: var(--pink);
  font-weight: 850;
  text-align: right;
}

.history-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
}

.button-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.page-header {
  position: sticky;
  z-index: 10;
  top: 0;
  margin: 0 -18px 16px;
  padding: 8px 18px;
  background: rgba(255, 249, 252, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.screen[data-screen="quiz"] .page-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, 430px);
  height: calc(var(--quiz-header-height) + env(safe-area-inset-top));
  min-height: 0;
  margin: 0;
  padding: env(safe-area-inset-top) 18px 0;
  transform: translateX(-50%);
}

.screen[data-screen="quiz"] .page-header h1 {
  font-size: 18px;
  line-height: 1.15;
}

.screen[data-screen="quiz"] .page-header > div span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
}

.page-header > div {
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 20px;
}

.page-header span {
  color: var(--muted);
  font-size: 12px;
}

.page-header > span:last-child {
  min-width: 44px;
  color: var(--pink);
  text-align: right;
  font-weight: 900;
}

.page-header.simple > h1 {
  flex: 1;
  text-align: center;
}

.screen[data-screen="photo"] .page-header {
  min-height: 78px;
  margin-bottom: 18px;
  background: rgba(255, 252, 254, .94);
}

.screen[data-screen="photo"] .page-header h1 {
  font-size: 22px;
}

.screen[data-screen="photo"] .page-header span {
  font-size: 13px;
}

.progress-track {
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e5ec;
}

.progress-track i {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff68a7, var(--pink), #a67cff);
  transition: width .22s ease;
}

.quiz-card {
  min-height: 430px;
}

.question-title {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
}

.question-title > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #ff7db5, var(--pink));
  font-size: 21px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(246, 50, 135, .22);
}

.question-title h2 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.4;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.answer-option {
  position: relative;
  min-height: 148px;
  padding: 12px 8px 13px;
  border: 1.5px solid rgba(246, 50, 135, .13);
  border-radius: 22px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.answer-option.selected {
  border-color: var(--pink);
  background: linear-gradient(180deg, #fff, #fff0f7);
  box-shadow: 0 10px 20px rgba(246, 50, 135, .12);
}

.answer-option img {
  width: 88px;
  height: 78px;
  margin: 0 auto 8px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.answer-option b {
  display: block;
  font-size: 13px;
}

.answer-option span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 17px;
  height: 17px;
  border: 2px solid #d8d1d8;
  border-radius: 50%;
}

.answer-option.selected span {
  border: 5px solid var(--pink);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
}

.section-title span {
  color: var(--muted);
  font-size: 11px;
}

.supplement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.supplement-option {
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.supplement-option.selected {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--pink-pale);
}

.sticky-actions {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 10px;
  margin: 0;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(246, 50, 135, .1);
  background: rgba(255, 249, 252, .94);
  box-shadow: 0 -12px 30px rgba(130, 58, 92, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.gate-card {
  padding: 28px 22px;
  text-align: center;
}

.gate-card > img {
  width: 108px;
  height: 108px;
  margin: 0 auto 10px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.mini-preview h2 {
  margin: 0;
  font-size: 19px;
}

.photo-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 5px;
  align-items: center;
  min-height: 154px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 22%, rgba(255, 196, 224, .64), transparent 76px),
    radial-gradient(circle at 100% 0%, rgba(255, 164, 204, .25), transparent 150px),
    var(--surface);
}

.photo-intro h2 {
  max-width: 250px;
}

.photo-intro p {
  max-width: 252px;
}

.photo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
}

.photo-eyebrow img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
}

.photo-intro-visual {
  width: 90px;
  height: 90px;
  margin-right: -8px;
  border-radius: 50%;
  object-fit: cover;
  opacity: .78;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.upload-card {
  position: relative;
  min-width: 0;
  padding: 12px 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
  text-align: center;
  cursor: pointer;
}

.upload-card.ready {
  border-color: rgba(16, 183, 90, .5);
}

.upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-preview-wrap {
  position: relative;
  width: min(106px, 100%);
  height: 106px;
  margin: 0 auto 7px;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-done {
  position: absolute;
  right: -2px;
  bottom: 7px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 17px rgba(246, 50, 135, .2);
}

.upload-card b,
.upload-card span {
  display: block;
}

.upload-card b {
  margin-top: 2px;
  font-size: 13px;
}

.upload-card span {
  margin-top: 8px;
  padding: 8px 3px;
  border-radius: 999px;
  color: var(--pink);
  background: var(--pink-pale);
  font-size: 12px;
  font-weight: 850;
}

.upload-note {
  margin: 12px 0 13px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.capture-rules h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.capture-rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-rules li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(32, 29, 36, .07);
}

.capture-rules li:last-child {
  border-bottom: 0;
}

.capture-rules b,
.capture-rules span {
  display: block;
}

.capture-rules li > img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.capture-rules b {
  font-size: 14px;
}

.capture-rules span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.capture-rules i {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1.5px solid #ff5b9d;
  border-radius: 50%;
  color: #ff5b9d;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 7px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--pink);
}

.consent-row b {
  color: var(--pink);
  font-weight: 850;
  text-decoration: underline;
}

.photo-actions {
  display: grid;
  gap: 12px;
}

.photo-actions .button.primary {
  min-height: 56px;
  box-shadow: 0 14px 30px rgba(246, 50, 135, .3);
}

.photo-actions .button.secondary {
  min-height: 50px;
  color: var(--pink);
  border-color: rgba(246, 50, 135, .55);
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}

.screen[data-screen="report"] {
  padding: env(safe-area-inset-top) 18px calc(38px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 219, 235, .86), transparent 17rem),
    radial-gradient(circle at 88% 22%, rgba(255, 224, 238, .64), transparent 18rem),
    radial-gradient(circle at 50% 72%, rgba(255, 230, 241, .76), transparent 22rem),
    linear-gradient(180deg, #fff8fc 0%, #fff2f8 52%, #fffafe 100%);
}

.screen[data-screen="report"] .page-header {
  min-height: 66px;
  margin: 0 -4px 8px;
}

.screen[data-screen="report"] .page-header.simple {
  position: sticky;
  z-index: 30;
  top: 0;
  margin: calc(-1 * env(safe-area-inset-top)) -18px 14px;
  padding: env(safe-area-inset-top) 18px 0;
  background: rgba(255, 247, 252, .94);
  border-bottom: 1px solid rgba(246, 50, 135, .08);
  box-shadow: 0 10px 24px rgba(196, 68, 126, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.screen[data-screen="report"] .page-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.screen[data-screen="report"] .text-button.accent {
  color: var(--pink);
  font-size: 15px;
  font-weight: 950;
}

.report-visual-card {
  position: relative;
  display: grid;
  grid-template-columns: 45% 55%;
  height: 252px;
  min-height: 252px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .98);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 42%, rgba(255, 255, 255, .95), transparent 34%),
    linear-gradient(90deg, rgba(255, 245, 250, .9), rgba(255, 255, 255, .76));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .48),
    0 18px 38px rgba(196, 68, 126, .12);
}

.report-visual-card::before,
.report-visual-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.report-visual-card::before {
  display: none;
}

.report-visual-card::after {
  width: 88px;
  height: 120px;
  right: 6px;
  top: 44px;
  opacity: .36;
  background-image: radial-gradient(rgba(246, 50, 135, .24) 1px, transparent 1px);
  background-size: 7px 7px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}

.report-portrait-panel {
  position: relative;
  z-index: 2;
  align-self: stretch;
  overflow: hidden;
}

.report-portrait-panel::before,
.report-portrait-panel::after {
  content: "";
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  pointer-events: none;
}

.report-portrait-panel::before {
  display: none;
}

.report-portrait-panel::after {
  display: none;
}

.report-portrait-panel img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: normal;
}

.report-summary-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: center;
  padding: 22px 16px 22px 8px;
}

.report-kicker,
.report-summary-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.report-kicker {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.report-summary-copy h2 {
  position: relative;
  margin: 0;
  color: var(--pink);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(31px, 8.6vw, 36px);
  font-weight: 950;
  line-height: 1.06;
  white-space: nowrap;
}

.report-summary-copy h2::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  vertical-align: 30px;
  background: var(--pink);
  box-shadow:
    0 0 0 4px rgba(246, 50, 135, .12),
    8px 8px 0 -3px rgba(246, 50, 135, .7);
  transform: rotate(45deg);
}

.report-summary-copy b {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid rgba(239, 138, 39, .55);
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.report-summary-copy p {
  margin: 0;
}

.report-basis-line {
  display: block;
}

.report-basis-line + .report-basis-line {
  margin-top: 3px;
}

.small-button {
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.metric-card {
  min-height: 104px;
  padding: 16px 13px 14px;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .44),
    0 12px 28px rgba(196, 68, 126, .10);
}

.metric-card b,
.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card b {
  min-height: 29px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}

.metric-card strong {
  margin: 5px 0 8px;
  color: var(--pink);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
}

.report-score-value {
  font-variant-numeric: tabular-nums;
}

.metric-card strong.purple {
  color: var(--purple);
}

.metric-card .report-score-total {
  display: inline;
  margin-left: 2px;
  color: #5f6570;
  font-size: 17px;
  font-weight: 500;
}

.meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8ef;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5f9e, var(--purple));
}

.factor-item,
.urgent-item,
.task-item {
  display: grid;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(246, 50, 135, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.factor-item {
  grid-template-columns: 48px 1fr;
  min-height: 70px;
  padding: 11px 13px;
  border-color: rgba(246, 50, 135, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.factor-index,
.factor-item .factor-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.factor-item:nth-child(2) .factor-index {
  background: var(--purple);
}

.factor-item:nth-child(3) .factor-index {
  background: var(--orange);
}

.factor-item b,
.factor-item span,
.urgent-item b,
.urgent-item span,
.task-item b,
.task-item span {
  display: block;
}

.factor-item b,
.urgent-item b,
.task-item b {
  font-size: 15px;
}

.factor-item span,
.urgent-item span,
.task-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.screen[data-screen="report"] .factor-card {
  position: relative;
  margin-top: 14px;
  padding: 18px 16px 16px;
  border-color: rgba(255, 255, 255, .98);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .48),
    0 15px 32px rgba(196, 68, 126, .11);
}

.factor-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 54px;
  border-top: 1px dashed rgba(246, 50, 135, .2);
}

.screen[data-screen="report"] .factor-card .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.screen[data-screen="report"] .factor-card .section-title h2 {
  font-size: 18px;
  font-weight: 950;
}

.screen[data-screen="report"] .factor-card .section-title h2::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  vertical-align: 12px;
  background: rgba(246, 50, 135, .72);
  transform: rotate(45deg);
}

.screen[data-screen="report"] .factor-card .section-title span {
  color: var(--muted);
}

.report-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  margin: 14px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(246, 50, 135, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  color: #6e727b;
  font-size: 13px;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.advice-item {
  padding: 10px 5px 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.advice-item img {
  width: 72px;
  height: 72px;
  margin: 0 auto 5px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.advice-item b {
  font-size: 12px;
}

.plan-cta {
  border-color: rgba(246, 50, 135, .28);
}

.screen[data-screen="report"] .plan-cta p {
  margin: 8px 0 20px;
}

.screen[data-screen="report"] .plan-cta .button.primary {
  margin-top: 6px;
}

.urgent-hero {
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 260px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
}

.urgent-hero > div {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 22px 0 22px 20px;
}

.urgent-hero h2 {
  margin: 14px 0 8px;
  font-size: 27px;
}

.urgent-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.urgent-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.scenario-option {
  min-height: 76px;
  padding: 9px;
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(246, 50, 135, .12);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.scenario-option.selected {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--pink-pale);
}

.scenario-option img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.urgent-item {
  grid-template-columns: 38px 1fr;
}

.urgent-item > b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--pink);
}

.task-item {
  grid-template-columns: 62px 1fr auto;
  cursor: pointer;
}

.task-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.task-state {
  min-width: 58px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.task-item.done {
  border-color: rgba(16, 183, 90, .28);
  background: #f1fff7;
}

.task-item.done .task-state {
  color: var(--green);
  border-color: rgba(16, 183, 90, .24);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  min-width: 0;
  padding: 10px 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: white;
  text-align: center;
  font-size: 10px;
}

.calendar-day b,
.calendar-day span {
  display: block;
}

.calendar-day span {
  margin-top: 5px;
  font-size: 8px;
}

.calendar-day.done {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.calendar-day.today {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--pink-pale);
}

.plan-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  align-items: start;
  margin: 12px 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
}

.plan-day {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--pink);
  background: var(--pink-pale);
  font-size: 23px;
  font-weight: 950;
}

.plan-card h2 {
  margin: 4px 0 6px;
  font-size: 19px;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.plan-card ul {
  margin: 10px 0 0;
  padding: 10px 12px 10px 27px;
  border-radius: 15px;
  color: var(--muted);
  background: var(--pink-pale);
  font-size: 11px;
  line-height: 1.65;
}

#posterCanvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 18px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.modal-mask {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(32, 29, 36, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal {
  position: relative;
  width: min(100%, 394px);
  max-height: 84vh;
  overflow-y: auto;
  padding: 28px 20px 20px;
  border-radius: 30px;
  background: white;
  box-shadow: 0 -20px 50px rgba(32, 29, 36, .2);
}

.modal-close {
  position: absolute;
  right: 13px;
  top: 12px;
  min-width: 44px;
  min-height: 36px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.modal h2 {
  margin: 10px 0 9px;
  font-size: 24px;
}

.modal p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.modal .button + .button {
  margin-top: 9px;
}

.analysis-list {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.analysis-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(32, 29, 36, .07);
  font-size: 13px;
}

.analysis-list b {
  color: var(--pink);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: min(84vw, 360px);
  padding: 11px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(32, 29, 36, .9);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-compliance-footer {
  padding: 8px 18px calc(26px + env(safe-area-inset-bottom));
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.app-compliance-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 13px;
  margin-bottom: 4px;
}

.app-compliance-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.app-compliance-footer p {
  margin: 0;
}

.legal-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(34px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 78% 0, rgba(255, 207, 230, .56), transparent 17rem),
    linear-gradient(180deg, #fffafd 0%, #fff6fb 100%);
  box-shadow: 0 0 70px rgba(76, 42, 61, .14);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  min-height: 60px;
  margin: -18px -18px 18px;
  padding: env(safe-area-inset-top) 18px 0;
  background: rgba(255, 250, 253, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-header h1 {
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.legal-card {
  padding: 22px 18px;
  border: 1px solid rgba(246, 50, 135, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.legal-card p {
  margin: 8px 0;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.legal-meta {
  color: var(--subtle);
  font-size: 12px;
}

.legal-actions {
  margin-top: 18px;
}

@media (min-width: 650px) {
  .app-shell {
    padding: 24px 0;
  }

  .app {
    min-height: calc(100vh - 48px);
    border-radius: 36px;
  }

  .brand-bar {
    top: 24px;
    border-radius: 36px 36px 0 0;
  }

  .screen[data-screen="quiz"] .page-header {
    top: 24px;
    border-radius: 36px 36px 0 0;
  }

  .sticky-actions {
    bottom: 24px;
    border-radius: 0 0 36px 36px;
  }
}

@media (max-width: 370px) {
  .screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    margin-left: -14px;
    margin-right: -14px;
  }

  .brand-bar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .screen[data-screen="quiz"] .page-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sticky-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-photo {
    right: -72px;
  }

  .card {
    padding: 17px;
  }

  .answer-option {
    min-height: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
