:root {
  --cream: #fff9f2;
  --paper: #fffdfb;
  --blush: #ffe2eb;
  --blush-strong: #f58bab;
  --pink: #ed6f96;
  --pink-deep: #d44f7b;
  --lilac: #ece3ff;
  --lilac-deep: #8b78b3;
  --yellow: #ffd96d;
  --plum: #422f4b;
  --plum-soft: #5b4863;
  --ink: #3b2b45;
  --muted: #796a7a;
  --green: #68ae82;
  --line: #eadde0;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --shadow: 0 14px 0 rgba(67, 45, 73, .08), 0 20px 35px rgba(67, 45, 73, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}
body::before {
  top: -170px;
  left: -130px;
  width: 380px;
  height: 380px;
  background: rgba(255, 213, 224, .42);
}
body::after {
  right: -180px;
  bottom: 9%;
  width: 420px;
  height: 420px;
  background: rgba(229, 216, 255, .38);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 4px;
}

.page-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}
.wordmark, .masthead-status, .section-mark, .hero-topline, .line-label, .duo-index, .site-footer, .note-topline {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 11px;
  text-decoration: none;
}
.wordmark span:not(.wordmark-dot) { color: var(--pink-deep); }
.wordmark-dot, .status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(237, 111, 150, .14);
}
.masthead-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: none;
}
.masthead-status strong { color: var(--pink-deep); }

.app-tabs {
  display: flex;
  gap: 7px;
  margin: 17px 0 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 251, .78);
  box-shadow: 0 5px 0 rgba(67, 45, 73, .04);
}
.app-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  font-size: 12px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.app-tabs button small { color: var(--lilac-deep); font: 800 8px var(--display); letter-spacing: .08em; }
.app-tabs button:hover { color: var(--pink-deep); transform: translateY(-1px); }
.app-tabs button.is-active { color: var(--paper); background: var(--plum); box-shadow: 0 3px 0 rgba(46, 32, 53, .2); }
.app-tabs button.is-active small { color: var(--yellow); }
.tab-panel[hidden] { display: none !important; }

.hero {
  position: relative;
  min-height: 585px;
  padding: 73px 0 63px;
  overflow: hidden;
}
.hero-topline, .section-mark {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--pink-deep);
  font-size: 9px;
  letter-spacing: .14em;
}
.hero-topline { margin-bottom: 30px; }
.hero-topline span:last-child { color: var(--lilac-deep); text-align: right; }
.hero-copy { position: relative; z-index: 2; width: 52%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.065em; }
h1 {
  max-width: 100%;
  margin: 0 0 24px;
  color: var(--plum);
  font-size: clamp(3.5rem, 8vw, 5.8rem);
  line-height: .91;
}
h1 em, h2 em { color: var(--pink); font-style: normal; }
.hero-subtitle {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.hero-subtitle strong { color: var(--plum); font-weight: 800; }
.hero-corner-note { display: none; }
.hero-art {
  position: absolute;
  z-index: 0;
  top: 132px;
  right: -35px;
  width: 545px;
  height: 350px;
  pointer-events: none;
}
.hero-art::before, .hero-art::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}
.hero-art::before {
  top: 18px;
  right: 78px;
  width: 270px;
  height: 270px;
  border: 1px dashed rgba(139, 120, 179, .35);
  box-shadow: 0 0 0 22px rgba(236, 227, 255, .55), 0 0 0 48px rgba(255, 226, 235, .55);
}
.hero-art::after {
  right: 11px;
  bottom: 8px;
  width: 170px;
  height: 170px;
  background: rgba(255, 217, 109, .25);
}
.hero-art > * { display: none; }

.duo-strip {
  position: absolute;
  z-index: 2;
  top: 128px;
  right: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 52%;
}
.duo-person {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 255px;
  padding: 19px 16px 17px;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(212, 79, 123, .12);
  border-radius: 23px;
  background: var(--blush);
  box-shadow: var(--shadow);
  text-align: center;
  transform: rotate(-3deg);
}
.duo-person::before {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 22px auto 12px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: var(--blush-strong);
  box-shadow: 0 0 0 1px rgba(212, 79, 123, .16);
  content: "小";
  font: 800 31px var(--display);
}
.duo-person::after {
  position: absolute;
  top: 17px;
  right: 18px;
  color: var(--pink-deep);
  content: "♥";
  font-size: 16px;
}
.duo-person-two {
  background: var(--lilac);
  border-color: rgba(139, 120, 179, .16);
  transform: rotate(3deg);
}
.duo-person-two::before { background: #a18cd2; }
.duo-person-two::after { color: #a18cd2; }
.duo-index {
  position: absolute;
  top: 14px;
  left: 17px;
  color: var(--lilac-deep);
  font-size: 8px;
}
.duo-person label {
  order: 1;
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.duo-person input {
  order: 2;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--plum);
  background: transparent;
  font: 800 clamp(1.18rem, 2.6vw, 1.6rem)/1.1 var(--display);
  letter-spacing: -.05em;
  text-align: center;
}
.duo-person input::placeholder { color: var(--muted); }
.duo-role {
  order: 3;
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.duo-join { display: grid; place-items: center; color: var(--pink); text-align: center; }
.duo-join span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  color: var(--pink);
  background: var(--yellow);
  box-shadow: 0 7px 0 rgba(67, 45, 73, .12);
  font-size: 0;
}
.duo-join span::after { content: "♡"; font-size: 32px; line-height: 1; }
.duo-join small {
  margin-top: 8px;
  color: var(--pink-deep);
  font: 800 7px/1.2 var(--display);
  letter-spacing: .1em;
}

.memory-prompt {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin-top: 43px;
  padding: 16px 18px 15px;
  color: var(--ink);
  border: 1px solid rgba(212, 79, 123, .13);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 7px 8px 0 rgba(212, 79, 123, .12);
  transform: rotate(-1deg);
}
.memory-prompt::before {
  position: absolute;
  top: -9px;
  left: 13%;
  width: 70px;
  height: 17px;
  background: rgba(255, 217, 109, .82);
  content: "";
  transform: rotate(-2deg);
}
.memory-prompt-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--pink-deep);
  font: 800 9px var(--display);
  letter-spacing: .12em;
}
.memory-prompt-label span:last-child { font-size: 17px; transform: rotate(-10deg); }
.memory-prompt input {
  display: block;
  width: calc(100% - 20px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}
.memory-prompt input::placeholder { color: #9a8591; }
.memory-prompt p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 35px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
.scroll-cue span:last-child {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  color: var(--pink-deep);
}

.next-round {
  position: relative;
  margin: 12px 0 66px;
  padding: 31px 34px 34px;
  color: var(--paper);
  border-radius: 22px;
  background: var(--plum);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.next-round::before {
  position: absolute;
  right: -105px;
  bottom: -145px;
  width: 350px;
  height: 350px;
  border: 1px dashed rgba(255, 217, 109, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(255, 217, 109, .04), 0 0 0 54px rgba(237, 111, 150, .04);
  content: "";
}
.next-round .section-mark { color: #f59abb; }
.next-round .section-mark span { color: var(--yellow); }
.next-round-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, .78fr);
  gap: 42px;
  align-items: end;
  margin-top: 28px;
}
.countdown-copy h2 { margin: 0 0 14px; color: var(--paper); font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; }
.countdown-copy > p { max-width: 41ch; color: #d9cbdc; font-size: 13px; }
.countdown-copy > p strong { color: var(--yellow); }
.countdown { display: flex; align-items: end; gap: clamp(7px, 1.2vw, 15px); margin-top: 27px; }
.time-unit { display: flex; align-items: end; gap: 4px; }
.time-unit strong {
  color: var(--paper);
  font: 800 clamp(2.1rem, 6vw, 4.4rem)/.85 var(--display);
  letter-spacing: -.08em;
  font-variant-numeric: tabular-nums;
}
.time-unit span { padding-bottom: 3px; color: #b6a5b9; font-size: 10px; }
.countdown > b { padding-bottom: 3px; color: #f59abb; font: 800 22px var(--display); }
.timer-note { margin: 15px 0 0; color: #bbaabb !important; font-size: 11px !important; }
.heart-action {
  padding: 19px 18px 17px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  text-align: center;
}
.heart-glyph {
  color: #f781a5;
  font-size: 83px;
  line-height: .8;
  text-shadow: 5px 7px 0 rgba(0, 0, 0, .16);
  animation: heart-beat 2.5s ease-in-out infinite;
}
.heart-action p { margin: 13px 0 2px; color: #e0d2df; font-size: 11px; }
.heart-action p strong { color: var(--yellow); font: 800 17px var(--display); }
.heart-action > span { display: block; margin-bottom: 14px; color: #bbaabb; font-size: 9px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-pink { width: 100%; color: #fff; background: var(--pink); box-shadow: 0 4px 0 #ae3f67; }
.button-pink:hover { background: var(--pink-deep); }
.button-dark { color: var(--paper); background: var(--plum); box-shadow: 0 4px 0 #2e2035; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--line); }
.button-outline:hover { border-color: var(--pink-deep); color: var(--pink-deep); background: #fff2f6; }

.field-notes {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 25px;
  padding: 0 0 70px;
}
.field-notes-intro { padding: 28px 0 16px; }
.field-notes-intro h2 { margin: 18px 0 15px; color: var(--plum); font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: .98; }
.field-notes-intro p { max-width: 29ch; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.field-notes-intro .section-mark { color: var(--pink-deep); }
.quest-card {
  align-self: start;
  min-height: 390px;
  padding: 25px 25px 23px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 10px 0 rgba(67, 45, 73, .06);
}
.quest-card .section-mark { align-items: center; }
.quest-new {
  padding: 4px 8px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  color: var(--pink-deep);
  font-size: 8px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.quest-card h2 { margin-top: 16px; margin-bottom: 13px; font-size: clamp(2rem, 4vw, 3.1rem); }
.quest-card > p { max-width: 37ch; margin-bottom: 20px; }
.quest-list { border-top: 1px dashed var(--line); }
.quest-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  text-decoration: none;
}
.quest-item:hover { color: var(--pink-deep); }
.quest-icon { display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid var(--pink); border-radius: 50%; color: var(--pink); font-weight: 800; }
.quest-item.is-done .quest-icon { color: var(--paper); background: var(--pink); }
.quest-item p { margin: 0; }
.quest-item strong, .quest-item small { display: block; }
.quest-item strong { font-size: 12px; }
.quest-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.quest-item > b { color: var(--pink-deep); font: 800 9px var(--display); letter-spacing: .08em; }
.quest-hint { margin-top: 18px; padding: 10px 12px; border-radius: 10px; color: var(--lilac-deep); background: #f3edff; font-size: 11px; text-align: center; }
.memory-line, .mission-line {
  padding: 25px 25px 28px;
  border: 1px solid transparent;
  border-radius: 19px;
  box-shadow: 0 10px 0 rgba(67, 45, 73, .06);
}
.memory-line { background: var(--lilac); border-color: rgba(139, 120, 179, .12); }
.mission-line { grid-column: 1 / -1; background: var(--paper); border-color: var(--line); }
.line-heading { display: flex; gap: 14px; align-items: start; }
.line-number { color: var(--pink-deep); font: 800 11px var(--display); }
.line-label { display: block; margin-bottom: 6px; color: var(--lilac-deep); font-size: 8px; }
.line-heading h3 { margin: 0; color: var(--plum); font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1; }
.timeline { position: relative; margin: 28px 0 0 4px; padding-left: 43px; }
.timeline::before { position: absolute; top: 5px; bottom: 5px; left: 7px; border-left: 1px dashed var(--lilac-deep); content: ""; opacity: .6; }
.timeline-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item time { color: var(--lilac-deep); font: 800 9px var(--display); letter-spacing: .04em; }
.timeline-dot { position: absolute; top: 2px; left: -43px; width: 15px; height: 15px; border: 4px solid var(--lilac); border-radius: 50%; background: var(--lilac-deep); box-shadow: 0 0 0 1px var(--lilac-deep); }
.timeline-dot.is-current { border-color: var(--lilac); background: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 0 6px rgba(237, 111, 150, .15); }
.timeline-item p { margin: -4px 0 0; }
.timeline-item strong, .timeline-item span { display: block; }
.timeline-item strong { font-size: 14px; }
.timeline-item p span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.timeline-item.is-future { opacity: .62; }
.mission-intro { max-width: 48ch; margin: 17px 0 18px; color: var(--muted); font-size: 13px; }
.mission-fields { display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.mission-fields label { color: var(--muted); font-size: 10px; }
.mission-fields input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--cream);
  font-size: 13px;
}
.mission-fields input:focus { border-color: var(--pink-deep); outline: 3px solid rgba(237, 111, 150, .2); }
.text-button { min-height: 42px; padding: 8px 4px; border: 0; color: var(--pink-deep); background: transparent; font-weight: 800; white-space: nowrap; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.mission-status { min-height: 22px; margin: 12px 0 0; color: var(--lilac-deep); font-size: 11px; }

.journal-section {
  margin: 0 0 67px;
  padding: 31px 32px 33px;
  border: 1px solid rgba(237, 111, 150, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--paper) 0%, #fff5f8 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.journal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.journal-heading .section-mark { color: var(--pink-deep); }
.journal-heading h2 { margin: 17px 0 12px; color: var(--plum); font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: .95; }
.journal-heading p { max-width: 47ch; margin: 0; color: var(--muted); font-size: 13px; }
.journal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 17px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .7); }
.journal-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.journal-filters button { min-height: 27px; padding: 4px 9px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.journal-filters button:hover { color: var(--pink-deep); background: var(--blush); }
.journal-filters button.is-active { color: var(--paper); background: var(--pink); }
.journal-export { min-height: auto; padding: 4px 0; font-size: 10px; }
.journal-counter { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--pink-deep); }
.journal-counter strong { font: 800 3.5rem/.8 var(--display); letter-spacing: -.08em; }
.journal-counter span { font: 800 8px/1.35 var(--display); letter-spacing: .1em; }
.journal-layout { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.journal-composer { padding: 21px 20px 17px; border: 1px solid rgba(212, 79, 123, .14); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 0 rgba(67, 45, 73, .06); }
.journal-form-top, .feed-title { display: flex; align-items: center; justify-content: space-between; color: var(--pink-deep); font: 800 10px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.journal-form-top { margin-bottom: 17px; }
.journal-form-top span:last-child { font-size: 17px; }
.journal-composer > label { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; }
.journal-composer input[type="date"], .journal-composer select, .journal-composer input[type="text"], .journal-composer textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fffafc; font-size: 12px; }
.journal-composer textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.journal-composer input:focus, .journal-composer select:focus, .journal-composer textarea:focus { border-color: var(--pink); outline: 3px solid rgba(237, 111, 150, .16); }
.mood-fieldset { padding: 0; margin: 15px 0 0; border: 0; }
.mood-fieldset legend { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.mood-options { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-options label { cursor: pointer; }
.mood-options input { position: absolute; opacity: 0; pointer-events: none; }
.mood-options span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fffafc; font-size: 11px; transition: .18s ease; }
.mood-options label:hover span { border-color: var(--pink); color: var(--pink-deep); }
.mood-options input:checked + span { border-color: var(--pink); color: var(--pink-deep); background: var(--blush); box-shadow: inset 0 0 0 1px var(--pink); }
.journal-composer .button { width: 100%; margin-top: 14px; }
.journal-local-note { margin: 10px 0 0; color: var(--lilac-deep); font-size: 10px; text-align: center; }
.journal-feed-wrap { min-width: 0; padding: 17px 18px 18px; border-radius: 16px; background: var(--lilac); }
.feed-title { min-height: 35px; padding: 0 2px 10px; border-bottom: 1px dashed rgba(139, 120, 179, .35); }
.feed-title .text-button { min-height: auto; padding: 0; font-size: 10px; }
.journal-feed { display: grid; gap: 12px; padding-top: 12px; }
.journal-empty { display: grid; place-items: center; min-height: 275px; padding: 28px; border: 1px dashed rgba(139, 120, 179, .38); border-radius: 14px; color: var(--lilac-deep); background: rgba(255, 255, 255, .46); text-align: center; }
.journal-empty strong, .journal-empty span { display: block; }
.journal-empty strong { margin-bottom: 5px; color: var(--plum); font: 800 1.2rem var(--display); }
.journal-empty span { max-width: 25ch; font-size: 12px; }
.journal-entry { position: relative; padding: 17px 18px 15px 55px; border: 1px solid rgba(139, 120, 179, .15); border-radius: 15px; background: var(--paper); box-shadow: 0 6px 0 rgba(67, 45, 73, .05); }
.journal-entry::before { position: absolute; top: 19px; left: 17px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--paper); background: var(--pink); content: attr(data-mood-icon); font-size: 14px; }
.journal-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.journal-entry-head strong { color: var(--plum); font-size: 13px; }
.journal-entry-head time { color: var(--muted); font: 800 9px var(--display); letter-spacing: .05em; white-space: nowrap; }
.journal-entry-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 9px; }
.journal-entry-meta span { padding: 3px 7px; border-radius: 999px; color: var(--lilac-deep); background: var(--lilac); font-size: 10px; }
.journal-entry p { margin: 0; color: var(--ink); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-entry-loot { margin-top: 9px !important; padding: 7px 9px; border-radius: 8px; color: var(--pink-deep) !important; background: #fff0f5; font-size: 11px !important; }
.journal-entry-loot::before { content: "掉落 · "; font-weight: 800; }
.journal-entry-delete { position: absolute; right: 12px; bottom: 9px; padding: 2px 0; border: 0; color: #a895a3; background: transparent; font-size: 10px; opacity: 0; }
.journal-entry:hover .journal-entry-delete, .journal-entry-delete:focus-visible { opacity: 1; }
.journal-entry-delete:hover { color: var(--pink-deep); }
.journal-entry-actions { display: flex; gap: 13px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.journal-entry-actions button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.journal-entry-actions button:hover, .journal-entry-actions button.is-liked { color: var(--pink-deep); }


.secret-drop {
  display: grid;
  grid-template-columns: 84px 1fr minmax(230px, .72fr);
  gap: 25px;
  align-items: center;
  margin: 0 0 67px;
  padding: 27px 25px;
  color: var(--paper);
  border-radius: 20px;
  background: var(--pink-deep);
  box-shadow: var(--shadow);
}
.drop-sticker {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 253, 251, .65);
  border-radius: 50%;
  color: var(--paper);
  font: 800 9px/1.2 var(--display);
  letter-spacing: .1em;
  text-align: center;
  transform: rotate(-9deg);
}
.drop-sticker span { color: var(--yellow); font-size: 22px; }
.secret-copy .section-mark { color: var(--yellow); }
.secret-copy h2 { margin: 10px 0 8px; color: var(--paper); font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: .98; }
.secret-copy p { max-width: 34ch; margin-bottom: 0; color: #ffd4e0; font-size: 12px; }
.drop-action { padding-left: 20px; border-left: 1px solid rgba(255, 253, 251, .28); }
.code-reveal { min-height: 54px; margin-bottom: 12px; padding: 12px 13px; color: var(--ink); border-radius: 8px; background: var(--paper); font-size: 12px; }
.drop-action .button { width: 100%; }

.quiz-section {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 35px;
  align-items: start;
  margin-bottom: 68px;
  padding: 31px 32px 33px;
  border: 1px solid rgba(139, 120, 179, .14);
  border-radius: 22px;
  background: var(--lilac);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quiz-section::after {
  position: absolute;
  right: -80px;
  top: -95px;
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(139, 120, 179, .35);
  border-radius: 50%;
  content: "";
}
.quiz-intro, .quiz-card, .quiz-result, .quiz-refresh { position: relative; z-index: 1; }
.quiz-intro h2 { margin: 18px 0 15px; color: var(--plum); font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .95; }
.quiz-intro > p:not(.section-mark):not(.quiz-progress-label):not(.quiz-source-note) { max-width: 31ch; color: var(--muted); font-size: 13px; }
.quiz-source-note { display: inline-flex; align-items: center; gap: 7px; margin: 20px 0 14px !important; color: var(--lilac-deep) !important; font: 800 9px var(--display); letter-spacing: .03em; }
.quiz-source-note span { color: var(--pink-deep); font-size: 14px; }
.quiz-progress { width: min(270px, 100%); height: 6px; border-radius: 99px; background: rgba(139, 120, 179, .18); overflow: hidden; }
.quiz-progress span { display: block; width: 33.33%; height: 100%; border-radius: inherit; background: var(--pink); }
.quiz-progress-label { margin: 7px 0 0; color: var(--lilac-deep); font: 800 9px var(--display); letter-spacing: .09em; }
.quiz-card { padding: 24px; border: 1px solid rgba(139, 120, 179, .13); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 0 rgba(67, 45, 73, .07); }
.quiz-meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.quiz-map-tag, .quiz-kind-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font: 800 9px var(--display); letter-spacing: .05em; }
.quiz-map-tag { color: var(--paper); background: var(--lilac-deep); }
.quiz-kind-tag { color: var(--pink-deep); background: var(--blush); }
.quiz-card fieldset { padding: 0; margin: 0; border: 0; }
.quiz-card legend { max-width: 28ch; margin-bottom: 17px; color: var(--ink); font: 800 clamp(1.25rem, 2.5vw, 1.8rem)/1.2 var(--display); letter-spacing: -.04em; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff8fb;
  font-size: 12px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.quiz-option:hover { border-color: var(--pink); background: #fff0f5; transform: translateX(3px); }
.quiz-option input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--pink-deep); }
.quiz-option:has(input:checked) { border-color: var(--pink-deep); background: var(--blush); box-shadow: inset 0 0 0 1px var(--pink-deep); }
.quiz-option:has(input:disabled) { cursor: default; transform: none; }
.quiz-option.is-correct { border-color: var(--green); background: #edf8f0; box-shadow: inset 0 0 0 1px var(--green); }
.quiz-option.is-wrong { border-color: var(--pink-deep); background: #fff0f3; }
.quiz-feedback { display: grid; gap: 3px; margin-top: 13px; padding: 11px 12px; border-radius: 9px; color: var(--muted); background: #f2ecff; font-size: 12px; }
.quiz-feedback strong { color: var(--ink); }
.quiz-feedback.is-positive { background: #edf8f0; }
.quiz-feedback.is-positive strong { color: #397653; }
.quiz-feedback.is-gentle { background: #fff0f5; }
.quiz-feedback.is-gentle strong { color: var(--pink-deep); }
.quiz-next { margin-top: 16px; }
.quiz-result { display: flex; align-items: center; gap: 17px; grid-column: 1 / -1; padding: 23px 0 0; }
.quiz-result:focus { outline: 3px solid var(--pink); outline-offset: 4px; }
.result-sticker { display: grid; place-items: center; width: 65px; height: 65px; flex: 0 0 auto; color: var(--pink-deep); border-radius: 16px; background: var(--yellow); font-size: 31px; transform: rotate(-8deg); }
.quiz-result .line-label { color: var(--pink-deep); }
.quiz-result h3 { margin: 3px 0 4px; color: var(--plum); font-size: clamp(1.45rem, 3vw, 2.1rem); }
.quiz-result p:last-child { max-width: 55ch; margin: 0; color: var(--muted); font-size: 12px; }
.quiz-result .button { margin-left: auto; flex: 0 0 auto; }
.quiz-refresh { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; color: var(--pink-deep); background: transparent; font-weight: 800; }
.quiz-refresh:hover { text-decoration: underline; text-underline-offset: 4px; }

.shared-note {
  max-width: 790px;
  margin: 0 auto 66px;
  padding: 30px clamp(20px, 5vw, 50px) 32px;
  border: 1px dashed rgba(237, 111, 150, .55);
  border-radius: 20px;
  background: var(--blush);
  box-shadow: 0 9px 0 rgba(212, 79, 123, .08);
  transform: rotate(.35deg);
}
.note-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--pink-deep); font-size: 8px; }
.shared-note h2 { margin: 23px 0 11px; color: var(--plum); font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .95; }
.shared-note > p { color: var(--muted); font-size: 12px; }
.shared-note textarea { display: block; width: 100%; min-height: 92px; resize: vertical; padding: 12px; border: 1px solid rgba(212, 79, 123, .16); border-radius: 10px; color: var(--ink); background: var(--paper); font-size: 13px; line-height: 1.6; }
.shared-note textarea::placeholder { color: #9d8790; }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; }
.note-actions > span { color: var(--muted); font-size: 10px; }
.note-buttons { display: flex; gap: 8px; }
.note-buttons .button { min-height: 40px; padding: 8px 13px; }

.closing-note {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 43px;
  padding: 21px 24px;
  border: 1px dashed rgba(237, 111, 150, .55);
  border-radius: 18px;
  background: #fff0f1;
}
.closing-glyph { display: grid; place-items: center; width: 55px; height: 55px; flex: 0 0 auto; border-radius: 50%; color: var(--pink-deep); background: var(--yellow); font-size: 27px; transform: rotate(-8deg); }
.closing-note h2 { margin: 0 0 6px; color: var(--plum); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.06; }
.closing-note p { max-width: 60ch; margin: 0; color: var(--muted); font-size: 11px; }
.closing-note .button { margin-left: auto; flex: 0 0 auto; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 24px; color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.toast {
  position: fixed;
  z-index: 10;
  right: 17px;
  bottom: 17px;
  max-width: min(340px, calc(100% - 34px));
  padding: 12px 15px;
  color: #fff;
  border-radius: 10px;
  background: var(--plum);
  box-shadow: 0 10px 28px rgba(45, 34, 48, .22);
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.floating-heart { position: fixed; z-index: 9; color: var(--pink); font-size: 24px; pointer-events: none; animation: float-heart 1.1s ease-out forwards; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes heart-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(1); } }
@keyframes float-heart { from { opacity: 1; transform: translate(0, 0) scale(.7) rotate(-10deg); } to { opacity: 0; transform: translate(var(--x), -105px) scale(1.25) rotate(12deg); } }

@media (max-width: 820px) {
  .hero { min-height: auto; padding-bottom: 52px; }
  .hero-copy { width: 54%; }
  .hero-art { right: -100px; opacity: .7; }
  .duo-strip { position: relative; top: auto; right: auto; width: 100%; margin-top: 45px; }
  .next-round-layout, .field-notes, .quiz-section, .journal-layout { grid-template-columns: 1fr; gap: 30px; }
  .field-notes-intro p, .quiz-intro > p:not(.section-mark):not(.quiz-progress-label):not(.quiz-source-note) { max-width: 46ch; }
  .mission-line { grid-column: auto; }
  .secret-drop { grid-template-columns: 72px 1fr; }
  .drop-action { grid-column: 1 / -1; padding: 18px 0 0; border-top: 1px solid rgba(255, 253, 251, .28); border-left: 0; }
  .quiz-result { grid-column: auto; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 520px); }
  .masthead { min-height: 60px; }
  .wordmark { font-size: 9px; letter-spacing: .09em; }
  .masthead-status { font-size: 0; }
  .masthead-status .status-light { width: 7px; height: 7px; }
  .hero { padding: 38px 0 38px; }
  .hero-topline { margin-bottom: 36px; font-size: 8px; }
  .hero-copy { width: 100%; }
  h1 { max-width: 100%; margin-bottom: 20px; font-size: clamp(3rem, 15vw, 5.4rem); }
  .hero-subtitle { max-width: 29ch; font-size: 13px; }
  .hero-art { top: 175px; right: -180px; opacity: .48; }
  .duo-strip { grid-template-columns: minmax(0, 1fr) 43px minmax(0, 1fr); gap: 4px; margin-top: 42px; }
  .duo-person { min-height: 205px; padding: 16px 10px 14px; border-radius: 18px; }
  .duo-person::before { width: 58px; height: 58px; margin: 21px auto 10px; border-width: 4px; font-size: 24px; }
  .duo-person::after { top: 13px; right: 13px; font-size: 13px; }
  .duo-index { top: 11px; left: 12px; font-size: 7px; }
  .duo-person label, .duo-role { font-size: 9px; }
  .duo-person input { font-size: 1.12rem; }
  .duo-join span { width: 43px; height: 43px; border-width: 3px; }
  .duo-join span::after { font-size: 24px; }
  .duo-join small { margin-top: 5px; font-size: 6px; }
  .memory-prompt { margin-top: 27px; padding: 14px 14px 13px; }
  .memory-prompt input { font-size: 13px; }
  .memory-prompt p { font-size: 10px; }
  .scroll-cue { margin-top: 27px; }
  .next-round { margin: 0 0 51px; padding: 23px 14px 17px; border-radius: 18px; }
  .next-round-layout { gap: 27px; margin-top: 28px; }
  .countdown-copy h2 { font-size: clamp(2.55rem, 13vw, 4.5rem); }
  .countdown-copy > p { font-size: 12px; }
  .countdown { gap: 5px; margin-top: 24px; }
  .time-unit { gap: 2px; }
  .time-unit strong { font-size: clamp(1.85rem, 10.8vw, 3.1rem); }
  .time-unit span { font-size: 8px; }
  .countdown > b { font-size: 15px; }
  .heart-action { padding: 18px 15px 15px; }
  .heart-glyph { font-size: 73px; }
  .field-notes { gap: 25px; padding-bottom: 55px; }
  .secret-drop { grid-template-columns: 62px 1fr; gap: 14px; margin-bottom: 52px; padding: 21px 15px 17px; border-radius: 17px; }
  .drop-sticker { width: 60px; height: 60px; font-size: 8px; }
  .drop-sticker span { font-size: 18px; }
  .secret-copy h2 { font-size: 1.95rem; }
  .secret-copy p { font-size: 11px; }
  .drop-action { padding-top: 15px; }
  .quiz-section { gap: 25px; margin-bottom: 52px; padding: 23px 14px 18px; border-radius: 18px; }
  .quiz-card { padding: 19px 14px 15px; border-radius: 14px; }
  .quiz-card legend { font-size: 1.22rem; }
  .quiz-option { min-height: 49px; font-size: 12px; }
  .quiz-next { width: 100%; }
  .quiz-result { align-items: start; flex-wrap: wrap; padding-top: 20px; }
  .quiz-result > div { flex: 1 1 calc(100% - 82px); }
  .quiz-result .button { width: 100%; margin-left: 0; }
  .quiz-refresh { min-height: 40px; }
  .shared-note { margin-bottom: 52px; padding: 24px 15px 23px; border-radius: 17px; }
  .shared-note h2 { margin-top: 20px; font-size: clamp(2.4rem, 13vw, 4.4rem); }
  .note-actions { align-items: stretch; flex-direction: column; }
  .note-buttons { width: 100%; }
  .note-buttons .button { flex: 1; }
  .closing-note { align-items: start; flex-wrap: wrap; gap: 12px; padding: 18px 14px; border-radius: 16px; }
  .closing-note > div:nth-child(2) { flex: 1 1 calc(100% - 70px); }
  .closing-note .button { width: 100%; margin-left: 0; }
  .site-footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 560px) {
  .journal-section { margin-bottom: 52px; padding: 23px 14px 18px; border-radius: 18px; }
  .journal-heading { align-items: start; gap: 14px; margin-bottom: 20px; }
  .journal-heading h2 { margin-top: 14px; font-size: clamp(2.35rem, 13vw, 4.3rem); }
  .journal-heading p { font-size: 12px; }
  .journal-counter strong { font-size: 2.6rem; }
  .journal-counter span { font-size: 7px; }
  .journal-toolbar { align-items: stretch; flex-direction: column; gap: 7px; margin-bottom: 13px; padding: 7px; }
  .journal-filters { justify-content: space-between; }
  .journal-filters button { flex: 1 1 auto; }
  .journal-export { align-self: flex-end; }
  .journal-layout { grid-template-columns: 1fr; gap: 19px; }
  .journal-feed-wrap { padding: 14px; }
  .journal-composer { padding: 18px 14px 15px; border-radius: 14px; }
  .journal-entry { padding-left: 51px; }
  .journal-entry-delete { opacity: 1; }
}

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