:root {
  color-scheme: light;
  --page-pink: #ff99ac;
  --ribbon: #ff607e;
  --girl: #ff6884;
  --boy: #658cf5;
  --field: #f2f2f2;
  --ruby: #ec3445;
  --ink: #54353c;
  --muted: #80575e;
  --phone: 460px;
  --u: min(1vw, 4.6px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure { margin: 0; }
html { min-height: 100%; }
body { background: #ffe7eb; color: var(--ink); }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; }
button, a, summary, label, input[type="checkbox"] { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, input[type="checkbox"]:focus-visible {
  outline: 3px solid #8b2b52; outline-offset: 3px;
}
.sr-only, .symbols { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.icon { width: 1.2em; height: 1.2em; display: inline-block; flex: none; }
.skip { position: fixed; z-index: 10; top: -5rem; left: 1rem; background: white; color: #812040; padding: .7rem; }
.skip:focus { top: .5rem; }
.experience { position: relative; isolation: isolate; margin: 0 auto; max-width: var(--phone); min-height: 100vh; min-height: 100svh; background: var(--page-pink); }
.masthead img, .garden-art { display: block; width: 100%; height: auto; }
.masthead { background: #ffd1d3; }
.garden { position: relative; isolation: isolate; overflow: hidden; background: #fff5f6; }
.garden-art { position: relative; z-index: -1; }
.test-note {
  position: absolute; inset: calc(1.52 * var(--u)) 10% auto;
  color: #ffbfc5; text-align: center; font-size: clamp(.7rem, calc(2.65 * var(--u)), .83rem);
  font-weight: 400; line-height: 1.55; letter-spacing: .015em;
}
.music-button {
  position: absolute; right: 0; top: max(0px, env(safe-area-inset-top, 0px)); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; color: #a14a60;
}
.music-button::before { content: ""; grid-area: 1 / 1; width: 26px; height: 26px; border-radius: 50%; background: #fff6f3bf; box-shadow: inset 0 0 0 1px #f2a1ad70; }
.music-button .icon { grid-area: 1 / 1; position: relative; width: 15px; height: 15px; }
.music-button[aria-pressed="true"] { color: #be324e; }
.music-button[aria-pressed="true"]::before { background: #fff4b9; }
.rail-tab { position: absolute; right: 0; display: flex; justify-content: flex-end; padding-left: 8px; min-width: 44px; line-height: 1; }
.rail-tab > span { display: flex; align-items: center; justify-content: center; color: #fffaf4; }
.rail-tab:active > span { filter: brightness(.94); }
.orders-tab { top: calc(2.35 * var(--u)); }
.orders-tab > span {
  width: calc(6.48 * var(--u)); height: calc(28.45 * var(--u)); background: #f69c68;
  border-radius: calc(3 * var(--u)) 0 0 calc(3 * var(--u));
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 93%);
  writing-mode: vertical-rl; text-orientation: upright; font-size: calc(4.57 * var(--u)); font-weight: 400; letter-spacing: .08em;
}
.help-tab { top: calc(34.38 * var(--u)); }
.help-tab > span {
  width: calc(7.05 * var(--u)); height: calc(16.65 * var(--u)); flex-direction: column; gap: calc(.65 * var(--u));
  border-radius: calc(2.05 * var(--u)) 0 0 calc(2.05 * var(--u)); background: rgb(112 79 75 / .57);
}
.help-tab .icon { width: calc(4.12 * var(--u)); height: calc(4.12 * var(--u)); }
.help-tab b { writing-mode: vertical-rl; font-size: calc(3.8 * var(--u)); letter-spacing: .08em; font-weight: 500; }
.petals { position: absolute; inset: 10% 0 4%; overflow: hidden; pointer-events: none; }
.petals i {
  position: absolute; top: -7%; left: var(--x); width: calc(1.65 * var(--u)); height: calc(.95 * var(--u));
  border-radius: 15% 80% 25% 75%; background: linear-gradient(145deg, #ff9aaf, #ffd7dd 65%, #fff5f3);
  opacity: 0; animation: drift var(--period) var(--delay) ease-in-out infinite both;
}
.petals i:nth-child(1) { --x: 8%; --period: 10.2s; --delay: -3.6s; }
.petals i:nth-child(2) { --x: 22%; --period: 11.5s; --delay: -8.2s; }
.petals i:nth-child(3) { --x: 38%; --period: 12.8s; --delay: -2s; }
.petals i:nth-child(4) { --x: 61%; --period: 10.8s; --delay: -7.6s; }
.petals i:nth-child(5) { --x: 78%; --period: 9.9s; --delay: -1s; }
.petals i:nth-child(6) { --x: 88%; --period: 13.2s; --delay: -9.3s; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-22deg); opacity: 0; }
  15% { opacity: .78; }
  54% { transform: translate(calc(-2.4 * var(--u)), calc(29 * var(--u))) rotate(73deg); }
  88% { opacity: .65; }
  100% { transform: translate(calc(3.6 * var(--u)), calc(58 * var(--u))) rotate(170deg); opacity: 0; }
}
#match-form { padding-top: calc(2.57 * var(--u)); }
.form-card {
  position: relative; margin: 0 calc(3.57 * var(--u)) 0 calc(4.02 * var(--u));
  padding: calc(14.40 * var(--u)) calc(5.92 * var(--u)) calc(6.95 * var(--u)) calc(4.80 * var(--u));
  border-radius: calc(4.02 * var(--u)); background: white;
}
.ribbon {
  position: absolute; top: calc(-2.46 * var(--u)); left: calc(8.37 * var(--u)); right: calc(8.60 * var(--u)); z-index: 1;
  font-size: calc(5.22 * var(--u)); font-weight: 600; color: white; line-height: 1; text-align: center; white-space: nowrap;
}
.ribbon > span {
  position: relative; z-index: 1; display: grid; place-items: center; min-height: calc(11.17 * var(--u));
  background: var(--ribbon); border-radius: 0 0 calc(2.12 * var(--u)) calc(2.12 * var(--u));
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 0; width: calc(7.2 * var(--u)); height: calc(2.46 * var(--u));
  background: #f03d5f; border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0;
}
.ribbon::before { left: calc(-5.02 * var(--u)); }
.ribbon::after { right: calc(-5.02 * var(--u)); }
.field-stack { display: grid; gap: calc(4.35 * var(--u)); }
.name-row {
  display: flex; align-items: stretch; min-height: max(48px, calc(13.95 * var(--u)));
  background: var(--field); border-radius: calc(1.95 * var(--u)); overflow: hidden;
}
.name-row:focus-within { box-shadow: 0 0 0 2px #ef879a; }
.name-row:nth-child(2):focus-within { box-shadow: 0 0 0 2px var(--boy); }
.name-row:has([aria-invalid="true"]) { box-shadow: 0 0 0 2px #c7324e; }
.name-tag {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 calc(14.06 * var(--u));
  font-size: calc(4.38 * var(--u)); font-weight: 500; line-height: 1.17; color: white; background: var(--girl);
}
.name-tag.blue { background: var(--boy); }
.name-row input {
  display: block; width: 0; min-width: 0; flex: 1; padding: 0 calc(7.5 * var(--u)) 0 calc(.8 * var(--u));
  border: 0; border-radius: 0; outline: none; background: transparent; appearance: none;
  font-size: max(1rem, calc(4.24 * var(--u))); line-height: 1.3; color: #53363d; caret-color: #dc4568; text-align: center;
}
.name-row input::placeholder { opacity: 1; color: #757575; }
.promise { margin-top: calc(7.3 * var(--u)); color: #999; font-size: max(.72rem, calc(2.88 * var(--u))); line-height: 1.34; }
.form-error { margin-top: .65rem; color: #ae2546; font-size: .875rem; line-height: 1.4; }
.form-error:not([hidden]) + .promise { margin-top: .7rem; }
.test-button, .retest {
  display: flex; align-items: center; justify-content: center; gap: calc(2.7 * var(--u));
  min-height: max(48px, calc(14.5 * var(--u))); border-radius: 1000px; color: var(--ruby);
  background: linear-gradient(to bottom, #fffae8 3%, #fff0bc 36%, #ffe382 77%, #ffda64 100%);
  box-shadow: 0 2px 0 #e78f42, inset 0 1px 1px #fff9df;
  font-weight: 700; text-decoration: none; text-shadow: 0 1px 0 #fff7e1;
}
.test-button {
  width: calc(100% - (7.59 * var(--u))); margin: calc(5.35 * var(--u)) calc(3.57 * var(--u)) 0 calc(4.02 * var(--u));
  font-size: calc(5.8 * var(--u)); letter-spacing: .025em;
}
.test-button svg { width: calc(4.55 * var(--u)); height: calc(4.55 * var(--u)); color: #f45361; filter: drop-shadow(0 1px 0 white); }
.test-button:active, .retest:active { transform: translateY(1px); box-shadow: inset 0 1px 1px #e9aa5e; }
.after-test {
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #66484e;
  padding: 1rem .65rem max(.75rem, env(safe-area-inset-bottom, 0px));
}
.consent { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .81rem; }
.consent input { appearance: none; margin: 0 .3rem 0 0; width: 19px; height: 19px; background: #ffcfda; border: 1.4px solid #ac586e; border-radius: 50%; cursor: pointer; }
.consent input:checked { background: #bc3b62; box-shadow: inset 0 0 0 3px #ffd9df; }
.consent label { cursor: pointer; }
.consent button { min-height: 40px; color: #863752; }
.order-link { min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: .17em; }
.support-link { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; min-height: 44px; font-size: .875rem; }
.report { min-height: 100vh; padding: 0 0 max(1.7rem, env(safe-area-inset-bottom, 0px)); background: linear-gradient(#ffd1d3, #fff0f1 21rem, #ffbac7 39rem, var(--page-pink)); }
.report-bar { display: flex; align-items: center; min-height: 48px; padding-inline: 1rem; }
.report-bar a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; color: #893c53; text-underline-offset: .2em; }
.report-cover { text-align: center; padding: .9rem 1.4rem 1.2rem; }
.report-kicker { font-weight: 650; font-size: .94rem; letter-spacing: .13em; color: #98435b; }
.report-names, .reveal-pair { display: flex; align-items: center; justify-content: center; gap: .55em; }
.report-names { margin: .55rem auto 1rem; color: #b92c50; font-size: clamp(1.55rem, calc(7.7 * var(--u)), 2.18rem); line-height: 1.35; }
.report-names:focus { outline: 0; }
.report-names span, .reveal-pair span { min-width: 0; max-width: 43%; overflow-wrap: anywhere; }
.report-names svg, .reveal-heart { flex: none; width: .76em; height: .76em; color: #ff6884; }
.score-medallion {
  margin: 0 auto 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 8.8rem; aspect-ratio: 1; border-radius: 50%; color: #af3743;
  border: 5px solid #fff8ec; outline: 2px solid #ffc277;
  background: radial-gradient(ellipse at 35% 15%, #fffde8, #ffe68d 70%, #ffca6a);
  box-shadow: 0 6px 15px #e3807629, inset 0 0 0 1px #fffefa;
}
.score-medallion strong { font-family: "Trebuchet MS", Arial, sans-serif; font-weight: 800; line-height: .98; color: var(--ruby); font-size: 3.5rem; font-variant-numeric: tabular-nums; }
.score-medallion span { margin-top: .38rem; font-size: .85rem; font-weight: 650; letter-spacing: .12em; }
.report-cover h2 { font-size: 1.5rem; color: #8e344e; }
.report-letter { margin: .48rem auto 0; font-size: 1rem; line-height: 1.75; text-align: start; }
.report-pages { margin: .7rem 4.1% 1.2rem; padding: 0 1rem .35rem; background: white; border-radius: 1.05rem; }
.reading-ribbon { background: var(--ribbon); margin: 0 auto .45rem; width: fit-content; padding: .52rem 1.15rem; border-radius: 0 0 .55rem .55rem; color: #fff; font-size: 1.12rem; }
.chapter, .dialog-body details { border-bottom: 1px solid #f2dce0; }
.chapter:last-child, .dialog-body details:last-of-type { border-bottom: 0; }
.chapter summary { scroll-margin-block-start: 1rem; }
.chapter summary, .dialog-body summary {
  position: relative; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  padding: 1rem 0; min-height: 48px; font-weight: 650; cursor: pointer; line-height: 1.48;
}
summary::-webkit-details-marker { display: none; }
.chapter summary::after, .dialog-body summary::after {
  content: ""; width: .48rem; height: .48rem; margin: -.2rem .24rem 0 0; flex: none;
  border: solid #b95c73; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
details[open] > summary::after { transform: rotate(225deg); margin-top: .22em; }
.chapter-copy { padding-bottom: 1rem; }
.chapter-copy h3 { color: #a53654; font-size: 1.12rem; }
.chapter-copy p, .dialog-body p { font-size: 1rem; line-height: 1.72; }
.chapter-copy p { margin-top: .6rem; }
.chapter-copy .small-note { font-size: .9rem; color: var(--muted); }
.practice { margin-top: .85rem; padding: .75rem .85rem; border-radius: .55rem; background: #fff3e0; color: #744532; }
.practice strong { font-size: .87rem; }
.practice p { margin-top: .18rem; }
.retest { margin: 0 4.1%; font-size: 1.12rem; min-height: 50px; }
.report-foot { margin-top: 1rem; color: #72404e; text-align: center; font-size: .8rem; }
body.has-dialog { overflow: hidden; }
dialog { max-width: min(91vw, 415px); width: 100%; max-height: 82vh; max-height: 82dvh; margin: auto; border: 0; border-radius: 1rem; color: var(--ink); background: #fffaf9; padding: 0; box-shadow: 0 18px 55px #82384b45; }
dialog::backdrop { background: rgb(79 40 52 / 42%); }
.sheet { padding: 0 1.1rem 1.1rem; }
.sheet > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: #fffaf9; min-height: 3.45rem; }
.sheet h2 { color: #96364f; font-size: 1.25rem; }
.close-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; margin-right: -.4rem; }
.close-button svg { width: 20px; height: 20px; }
.dialog-body h3 { margin: .95rem 0 .3rem; font-size: 1rem; }
.dialog-body details p { padding-bottom: .8rem; }
.dialog-body .fine { color: var(--muted); font-size: .86rem; }
.dialog-link, .dialog-action { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; margin-top: .55rem; }
.dialog-link { color: #983e59; text-decoration: underline; text-underline-offset: .18em; }
.dialog-action { background: #ffdae2; color: #902d4e; font-weight: 650; padding: .6rem 1rem; border-radius: .6rem; }
.record { display: flex; flex-direction: column; text-align: start; width: 100%; border: 1px solid #f3c9d2; background: #fff; border-radius: .68rem; padding: .65rem .8rem; margin: .65rem 0 0; }
.record strong { font-size: 1rem; overflow-wrap: anywhere; }
.record small { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.reveal { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1.3rem; background: rgb(255 232 236 / 93%); }
.reveal-paper { text-align: center; width: min(100%, 390px); }
.reveal-pair { font-size: 1.65rem; font-weight: 700; color: #b53152; }
.reveal-pair span { animation: meet .8s cubic-bezier(.22,.7,.35,1) both; }
.reveal-pair span:last-child { --entry: 2.5rem; }
.reveal-heart { width: 1.05em; height: 1.05em; animation: bloom .9s ease-out both; }
.reveal p { margin-top: .85rem; color: #99536a; }
@keyframes meet { from { opacity: 0; transform: translateX(var(--entry, -2.5rem)); } to { opacity: 1; transform: translateX(0); } }
@keyframes bloom { 0%, 32% { transform: scale(.5); opacity: .2; } 65% { transform: scale(1.13); opacity: 1; } 100% { transform: scale(1); } }
.still .petals i { animation-play-state: paused; }
.still .reveal * { animation: none; }
@media (min-width: 600px) {
  body { background: radial-gradient(ellipse at 50% 20%, #fff4f4, #ffe3e8 80%); }
  .experience { box-shadow: 0 0 32px #ae516313; }
}
@media (max-width: 350px) {
  .ribbon { font-size: calc(5.1 * var(--u)); }
  .promise { font-size: .69rem; }
  .consent { font-size: .755rem; }
}
@media (prefers-reduced-motion: reduce) {
  .petals i, .reveal * { animation: none !important; }
}
@supports (width: 1cqw) {
  .experience { container-type: inline-size; }
  .experience > * { --u: 1cqw; }
}
.garden::after {
  content: ""; position: absolute; inset: auto 0 0; height: calc(1.65 * var(--u));
  background: linear-gradient(transparent, var(--page-pink)); pointer-events: none;
}
#notice, .symbols { top: 0; left: 0; }
