:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #777;
  --line: #d9d9d9;
  --paper: #fff;
  --danger: #a12626;
  --accent: #91584e;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { width: min(100% - 48px, 720px); margin: 0 auto; padding: 27px 0 80px; }
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 90px; }
.wordmark { font-size: 14px; font-weight: 650; letter-spacing: .04em; }
.eyebrow, .overline { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.overline { margin: 0 0 22px; }
h1 { margin: 0 0 36px; font-size: clamp(42px, 8vw, 74px); font-weight: 500; letter-spacing: -.07em; line-height: 1.18; }
h2 { margin: 0; font-size: clamp(23px, 4vw, 31px); font-weight: 500; letter-spacing: -.035em; line-height: 1.5; }
p { line-height: 1.8; }
.intro { max-width: 37em; font-size: 16px; color: #333; line-height: 2; }
.greeting { margin: 0 0 16px; font-size: 16px; line-height: 1.8; }
.prose { white-space: pre-line; }
.meta { color: var(--muted); font-size: 13px; }
.privacy-note { margin: 54px 0 48px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 36em; color: #555; font-size: 13px; }
.privacy-note p { margin: 0 0 10px; }
.text-action { border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font-size: 17px; padding: 8px 0 10px; }
.text-action span { display: inline-block; margin-left: 32px; }
.progress { display: flex; justify-content: space-between; gap: 12px; min-height: 22px; color: var(--muted); font-size: 12px; }
.progress-track { height: 1px; background: var(--line); margin: 11px 0 70px; }
#progress-fill { height: 1px; background: var(--ink); transition: width .25s ease; }
.question { min-height: 48vh; }
.question h2 { max-width: 620px; }
.question-note { color: #555; font-size: 14px; margin: 24px 0 0; max-width: 39em; line-height: 1.95; }
.choices { margin: 42px 0 56px; border-top: 1px solid var(--line); }
.choice { display: flex; align-items: center; gap: 18px; min-height: 68px; padding: 14px 8px 14px 2px; border-bottom: 1px solid var(--line); line-height: 1.55; cursor: pointer; }
.choice span { flex: 1; }
.choice:hover { color: #555; }
.choice:has(input:checked) { color: #000; font-weight: 600; }
.choice input { appearance: none; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #999; border-radius: 50%; display: grid; place-items: center; margin: 0; }
.choice input[type="checkbox"] { border-radius: 0; }
.choice input:checked { border-color: var(--ink); }
.choice input:checked::after { content: ""; width: 8px; height: 8px; background: var(--ink); border-radius: inherit; }
textarea, input[type="password"], input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); padding: 14px 15px; outline: none; }
textarea { min-height: 132px; resize: vertical; line-height: 1.7; margin-top: 24px; }
textarea:focus, input:focus { border-color: var(--ink); }
.flow-actions, .action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--ink); padding-top: 24px; }
.button { border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; padding: 13px 19px; font-weight: 550; }
.button.secondary, .button.ghost { background: #fff; color: var(--ink); }
.button.ghost { border-color: var(--line); }
.button:disabled { opacity: .5; cursor: wait; }
.skip-button { border: 0; background: none; color: var(--muted); padding: 12px 0; margin-left: auto; font-size: 13px; }
.skip-button:hover { color: var(--ink); }
.error, #save-state.error { color: var(--danger); }
.summary-heading { font-size: 18px; margin: 65px 0 20px; }
.answer-item { border-top: 1px solid var(--line); padding: 19px 0; }
.answer-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.answer-value { line-height: 1.7; }

.admin-shell { width: min(100% - 48px, 1040px); }
.admin-shell .masthead { margin-bottom: 56px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.login-card { max-width: 420px; margin: 9vh auto 0; }
.field { display: grid; gap: 8px; margin: 22px 0; }
.field label { color: var(--muted); font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 42px; }
.new-link { border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 42px; }
.list { border-top: 1px solid var(--ink); }
.list-item { width: 100%; text-align: left; display: grid; gap: 6px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; }
.list-item.active .list-title { text-decoration: underline; text-underline-offset: 4px; }
.list-title { font-weight: 600; }
.list-meta { color: var(--muted); font-size: 12px; display: flex; gap: 12px; }
.status { display: inline-flex; padding: 3px 7px; border: 1px solid currentColor; font-size: 11px; letter-spacing: .06em; }
.detail-empty { color: var(--muted); border-top: 1px solid var(--ink); padding-top: 22px; }
.detail h2 { margin-bottom: 8px; }
.link-box { display: flex; gap: 8px; margin: 22px 0 30px; }
.link-box input { min-width: 0; font-family: ui-monospace, monospace; font-size: 12px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }

/* A small pixel letter gives the invitation a personal detail. */
.survey-body { --ink: #302c29; --muted: #82786f; --line: #e5d9ca; --paper: #fffaf2; --accent: #b66e52; }
.survey-body .shell { width: min(100% - 48px, 640px); }
.survey-body .masthead { border-color: var(--line); margin-bottom: 80px; }
.survey-body .wordmark { font-size: 13px; letter-spacing: 0; }
.survey-body .eyebrow { font-size: 11px; letter-spacing: 0; }
.survey-body .overline { font-size: 12px; letter-spacing: .04em; }
.welcome-page, .ending-page, .question { animation: gentlyAppear .22s ease-out both; }
.welcome-page { padding: 5px 0 20px; }
.pixel-letter { display: block; width: 66px; height: 66px; margin: 0 0 29px -5px; image-rendering: pixelated; }
.welcome-page h1, .ending-page h1 { font-family: inherit; font-size: clamp(42px, 9vw, 61px); font-weight: 650; letter-spacing: -.055em; line-height: 1.3; }
.welcome-page h1 { margin: 12px 0 26px; }
.welcome-page .intro { max-width: 35em; color: #504943; font-size: 15px; line-height: 2.05; }
.survey-body .text-action { margin-top: 24px; padding: 13px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 15px; }
.survey-body .text-action span { margin-left: 30px; color: #f6cbb0; font-size: 17px; }
.survey-body .text-action:hover, .survey-body .button:hover { transform: translate(2px, -2px); box-shadow: -3px 3px 0 #e2bfa4; }
.survey-body .privacy-note { margin-top: 80px; max-width: 36em; border-color: var(--line); color: #716860; font-size: 12.5px; }
.privacy-note .privacy-label { color: var(--ink); font-weight: 600; margin-bottom: 15px; }
.privacy-note p:not(.privacy-label) { line-height: 1.9; }
.survey-body .progress { align-items: baseline; font-size: 12px; }
.survey-body .progress-track { height: 6px; background: repeating-linear-gradient(90deg, #e8dfd3 0 12px, transparent 12px 16px); margin: 16px 0 65px; }
.survey-body #progress-fill { height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 16px); }
.survey-body .question { min-height: 44vh; }
.survey-body .question h2 { max-width: 590px; font-family: inherit; font-size: clamp(20px, 3.5vw, 23px); font-weight: 500; line-height: 1.7; letter-spacing: -.025em; }
.survey-body .question-note { max-width: 38em; margin-top: 23px; color: #625951; font-size: 14px; line-height: 1.95; }
.survey-body .choices { margin-top: 37px; border-top: 0; }
.survey-body .choice { min-height: 60px; margin-bottom: 9px; padding: 12px 16px; border: 1px solid var(--line); background: #fffdf9; font-size: 14px; transition: background .16s ease, border-color .16s ease; }
.survey-body .choice:hover { color: var(--ink); border-color: #cdb8a7; }
.survey-body .choice:has(input:checked) { border-color: var(--accent); background: #fff1e5; color: var(--ink); font-weight: 550; box-shadow: 3px 3px 0 #eacdb8; }
.survey-body .choice input { border-radius: 0; border-color: #b6a89b; }
.survey-body .choice input:checked { border-color: var(--accent); }
.survey-body .choice input:checked::after { width: 8px; height: 8px; border-radius: 0; background: var(--accent); }
.survey-body .flow-actions { border-color: var(--line); }
.survey-body .button { font-weight: 550; }
.survey-body .button.ghost { background: var(--paper); }
.ending-page { padding-top: 8px; }
.ending-page::before { content: ""; display: block; width: 24px; height: 24px; margin: 0 0 34px; background: #d78c69; box-shadow: 8px 0 #d78c69, 0 8px #d78c69, 8px 8px #d78c69, -8px -8px #f5cba8; }
.ending-page h1 { margin: 15px 0 32px; }
.ending-line { font-size: clamp(18px, 4vw, 22px); line-height: 1.9; margin: 0; }
.ending-wish { margin-top: 30px; font-size: 15px; }
.answers-disclosure { margin-top: 28px; }
.answers-disclosure summary { width: fit-content; padding: 8px 0 11px; border-bottom: 1px solid var(--ink); list-style: none; cursor: pointer; font-size: 14px; }
.answers-disclosure summary::-webkit-details-marker { display: none; }
.answers-disclosure summary span { margin-left: 30px; color: var(--accent); }
.answers-disclosure[open] summary span { display: inline-block; transform: rotate(90deg); }
.answers-disclosure .answer-summary { margin-top: 35px; }
@keyframes gentlyAppear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .welcome-page, .ending-page, .question { animation: none; } .survey-body .choice { transition: none; } }
@media (max-width: 720px) {
  .shell { width: min(100% - 42px, 720px); padding-top: 19px; }
  .masthead { margin-bottom: 72px; }
  .survey-shell { min-height: 100dvh; }
  .progress-track { margin-bottom: 55px; }
  .question { min-height: 44vh; }
  .choices { margin-top: 34px; }
  .choice { min-height: 64px; }
  .flow-actions { gap: 9px; }
  .flow-actions .button { min-width: 110px; }
  .admin-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail { order: -1; }
  .survey-body .shell { width: min(100% - 44px, 640px); }
  .survey-body .masthead { margin-bottom: 64px; }
  .welcome-page { padding-top: 4px; }
  .welcome-page h1 { font-size: 45px; margin-bottom: 22px; }
  .survey-body .privacy-note { margin-top: 70px; }
  .survey-body .progress-track { margin-bottom: 55px; }
  .survey-body .question h2 { font-size: 21px; }
  .survey-body .choices { margin-top: 32px; }
  .survey-body .flow-actions .button { min-width: 104px; }
  .ending-page h1 { font-size: 48px; }
}

@font-face {
  font-family: "Fusion Pixel";
  src: url("/fonts/fusion-pixel-12-zh-hans.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

/* Pixel game menu, scoped to the invitation. */
.survey-body {
  --ink: #333441;
  --muted: #65677a;
  --line: #717184;
  --paper: #f8f4e8;
  --accent: #556f72;
  font-family: "Fusion Pixel", "PingFang SC", sans-serif;
  font-size: 16px;
  background: var(--paper);
  background-image: linear-gradient(#a39c8c1b 1px, transparent 1px), linear-gradient(90deg, #a39c8c1b 1px, transparent 1px);
  background-size: 24px 24px;
}
.survey-body .shell { width: min(100% - 36px, 670px); padding-top: 24px; }
.survey-body .masthead { align-items: center; margin-bottom: 64px; padding: 0 0 16px; border-bottom: 3px solid var(--ink); }
.survey-body .wordmark { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.music-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 2px solid currentColor; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: transform .1s ease, background .1s ease; }
.music-toggle:hover { background: #ffffff26; transform: translateY(-1px); }
.music-toggle:active { transform: translateY(1px); }
.music-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.music-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.music-toggle .music-pause, .music-toggle[aria-pressed="true"] .music-play { display: none; }
.music-toggle[aria-pressed="true"] .music-pause { display: initial; }
.music-dock { position: fixed; z-index: 5; top: 44%; right: -2px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 0; border: 2px solid var(--ink); border-radius: 30px 0 0 30px; background: #fffaf0ed; color: var(--ink); box-shadow: -3px 3px 0 #23243326; transform: translateX(calc(100% - 30px)); transition: transform .22s ease; }
.music-dock.is-open { transform: translateX(0); }
.music-handle { display: grid; place-items: center; width: 42px; height: 44px; padding: 0 12px 0 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.music-handle svg { width: 16px; height: 16px; }
.music-handle-note { fill: currentColor; }
.music-handle-close { display: none; fill: none; stroke: currentColor; stroke-width: 2; }
.music-dock.is-open .music-handle-note { display: none; }
.music-dock.is-open .music-handle-close { display: initial; }
.music-handle:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; border-radius: 24px; }
.music-panel { display: flex; }
.night-scene .music-dock { background: #e3e0d3ed; }
@media (prefers-reduced-motion: reduce) { .music-dock, .music-handle svg { transition: none; } }
.survey-body .overline { color: #56596b; font-size: 12px; letter-spacing: 0; }
.pixel-letter { width: 72px; height: 72px; margin-bottom: 24px; }
.pixel-letter { overflow: visible; }
.letter-paper { animation: peekFromEnvelope 5.5s steps(4, end) infinite; }
@keyframes peekFromEnvelope {
  0%, 8%, 48%, 100% { transform: translateY(0); }
  20%, 36% { transform: translateY(-16px); }
}
.welcome-page h1, .ending-page h1 { font-family: inherit; font-size: 36px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.welcome-page h1 { margin: 12px 0 20px; }
.welcome-page .intro { max-width: 36em; color: var(--ink); font-size: 16px; line-height: 2; }
.survey-body .text-action, .survey-body .button {
  border: 3px solid var(--ink); border-radius: 0; padding: 12px 17px; background: #f2c873; color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 400; box-shadow: 4px 4px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease;
}
.survey-body .text-action span { color: inherit; margin-left: 26px; font-size: 14px; }
.survey-body .text-action:hover, .survey-body .button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.survey-body .text-action:active, .survey-body .button:active { transform: translate(4px, 4px); box-shadow: none; }
.survey-body .privacy-note { margin-top: 69px; max-width: none; border: 3px solid var(--ink); padding: 18px 18px 12px; background: #fffdf5; color: #55586a; box-shadow: 5px 5px 0 #d6cfba; font-size: 13px; }
.privacy-note .privacy-label { color: var(--ink); font-weight: 400; }
.privacy-note p:not(.privacy-label) { line-height: 1.9; }
.survey-body .progress { font-size: 12px; color: var(--ink); }
.survey-body .progress-track { height: 10px; border: 2px solid var(--ink); margin: 15px 0 53px; background: repeating-linear-gradient(90deg, #e4dfd1 0 16px, #faf8ee 16px 20px); }
.survey-body #progress-fill { height: 6px; background: repeating-linear-gradient(90deg, #83a69d 0 16px, #f8f4e8 16px 20px); }
.survey-body .question { min-height: 44vh; }
.survey-body .question h2 { font-family: inherit; font-size: 20px; font-weight: 400; line-height: 1.8; letter-spacing: 0; }
.survey-body .question-note { color: #55586a; font-size: 14px; line-height: 2; }
.survey-body .choices { margin-top: 32px; border: 0; }
.survey-body .choice { gap: 13px; min-height: 61px; margin-bottom: 10px; border: 2px solid var(--ink); padding: 12px 14px; background: #fffdf5; color: var(--ink); font-size: 15px; line-height: 1.7; box-shadow: 3px 3px 0 #c8c2af; }
.survey-body .choice:hover { border-color: var(--ink); background: #f4eedb; }
.survey-body .choice:has(input:checked) { border-color: var(--ink); background: #dbe7d9; box-shadow: 4px 4px 0 var(--ink); font-weight: 400; }
.survey-body .choice:has(input:checked)::before { content: "▶"; flex: 0 0 15px; font-size: 12px; color: var(--accent); }
.survey-body .choice input { flex-basis: 15px; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 0; }
.survey-body .choice input:checked { border-color: var(--ink); }
.survey-body .choice input:checked::after { width: 7px; height: 7px; background: var(--accent); }
.survey-body textarea { border: 3px solid var(--ink); border-radius: 0; background: #fffdf5; box-shadow: 4px 4px 0 #c8c2af; font-size: 16px; line-height: 1.8; }
.survey-body .flow-actions { border-top: 3px solid var(--ink); }
.survey-body .button.ghost, .survey-body .button.secondary { background: #fffdf5; color: var(--ink); }
.survey-body .skip-button { font-size: 13px; color: #55586a; }
.ending-page::before { width: 16px; height: 16px; margin: 0 0 31px 8px; background: #e49876; box-shadow: 16px 0 #e49876, 0 16px #e49876, 16px 16px #e49876, -8px -8px #e49876; }
.ending-page h1 { margin: 16px 0 27px; }
.ending-line { font-size: 20px; line-height: 2; }
.answers-disclosure summary { border-bottom: 2px solid var(--ink); }
.survey-body :focus-visible { outline: 3px dashed #bd704c; outline-offset: 4px; }
.send-dialog { width: min(100% - 32px, 420px); max-height: calc(100dvh - 32px); margin: auto; padding: 26px 24px 22px; border: 3px solid var(--ink); border-radius: 0; background: #fffdf5; color: var(--ink); box-shadow: 8px 8px 0 var(--ink); font-family: "Fusion Pixel", "PingFang SC", sans-serif; }
.send-dialog::backdrop { background: #232433aa; }
.send-dialog .overline { margin: 0 0 16px; font-size: 12px; }
.send-dialog h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.7; }
.send-dialog p:not(.overline) { margin: 14px 0 25px; color: #55586a; font-size: 14px; line-height: 1.8; }
.send-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.send-dialog .button { border: 3px solid var(--ink); border-radius: 0; padding: 10px 18px; background: #f2c873; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: inherit; font-size: 14px; }
.send-dialog .button.ghost { background: #fffdf5; }
.send-dialog .button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .letter-paper { animation: none; } }
@media (max-width: 720px) {
  .survey-body .shell { width: min(100% - 34px, 670px); padding-top: 17px; }
  .survey-body .masthead { margin-bottom: 47px; }
  .welcome-page h1 { font-size: 30px; }
  .welcome-page .intro { font-size: 15px; }
  .survey-body .privacy-note { margin-top: 62px; }
  .survey-body .progress-track { margin-bottom: 45px; }
  .survey-body .question h2 { font-size: 18px; line-height: 1.9; }
  .survey-body .choice { font-size: 14px; }
  .ending-page h1 { font-size: 30px; }
}

/* A small pixel landscape stays behind the letter through every chapter. */
.survey-body { background: #a8d7e3; transition: background-color .6s ease; }
.pixel-landscape { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#83bfd8 0%, #c7e4dd 70%, #e3dfba 100%); transition: background .6s ease; }
.pixel-sun, .pixel-moon { position: absolute; top: 9%; right: max(7%, calc(50% - 485px)); width: 66px; height: 66px; background: #f9df83; box-shadow: 0 -10px 0 -7px #fff0a0, 0 10px 0 -7px #f4c967, 10px 0 0 -7px #f4c967, -10px 0 0 -7px #fff0a0; image-rendering: pixelated; }
.pixel-moon { display: none; width: 60px; height: 60px; top: 10%; background: #eee9bd; box-shadow: none; clip-path: polygon(60% 0, 35% 0, 35% 6%, 22% 6%, 22% 16%, 12% 16%, 12% 28%, 6% 28%, 6% 70%, 12% 70%, 12% 82%, 22% 82%, 22% 92%, 35% 92%, 35% 100%, 68% 100%, 68% 94%, 82% 94%, 82% 84%, 92% 84%, 92% 70%, 98% 70%, 98% 58%, 84% 58%, 84% 64%, 66% 64%, 66% 58%, 54% 58%, 54% 50%, 46% 50%, 46% 38%, 40% 38%, 40% 20%, 46% 20%, 46% 8%, 60% 8%); }
.pixel-cloud { position: absolute; width: 104px; height: 25px; background: #fbf8e9; box-shadow: 24px -15px 0 #fbf8e9, 46px -25px 0 #fbf8e9, 76px -14px 0 #fbf8e9, 100px 0 0 #fbf8e9, 8px 9px 0 #d6e5dd, 85px 9px 0 #d6e5dd; opacity: .95; animation: cloudDrift 14s steps(14, end) infinite alternate; }
.cloud-a { top: 16%; left: 4%; --cloud-scale: .75; animation-delay: -4s; }
.cloud-b { top: 33%; right: 12%; --cloud-scale: .52; animation-duration: 18s; animation-delay: -8s; animation-direction: alternate-reverse; }
.cloud-c { top: 51%; left: 12%; --cloud-scale: .44; animation-duration: 21s; animation-delay: -12s; }
.pixel-hill { position: absolute; bottom: 0; width: 100%; height: 24%; clip-path: polygon(0 42%, 8% 42%, 8% 31%, 19% 31%, 19% 39%, 30% 39%, 30% 22%, 42% 22%, 42% 38%, 57% 38%, 57% 29%, 68% 29%, 68% 39%, 81% 39%, 81% 24%, 92% 24%, 92% 40%, 100% 40%, 100% 100%, 0 100%); }
.hill-back { bottom: 4%; background: #a6c9a8; transform: scaleX(-1); }
.hill-front { background: #79ab86; }
.pixel-grass { position: absolute; bottom: 0; width: 100%; height: 10%; background: repeating-linear-gradient(90deg, #548c6b 0 6px, #6b9e73 6px 11px, #477d61 11px 15px); }
.pixel-grass::before { content: ""; position: absolute; inset: -13px 0 auto; height: 18px; background: repeating-linear-gradient(90deg, transparent 0 8px, #548c6b 8px 13px, transparent 13px 21px, #6b9e73 21px 26px, transparent 26px 34px); animation: grassSway 1.4s steps(2, end) infinite alternate; transform-origin: bottom; }
.pixel-star { display: none; position: absolute; width: 5px; height: 5px; background: #faedb9; box-shadow: 0 -7px #faedb9, 0 7px #faedb9, -7px 0 #faedb9, 7px 0 #faedb9; animation: starTwinkle 4s steps(2, end) infinite alternate; }
.star-a { top: 12%; left: 16%; }.star-b { top: 27%; left: 72%; animation-delay: 1s; }.star-c { top: 41%; left: 29%; animation-delay: 2s; }.star-d { top: 18%; right: 21%; animation-delay: 1.5s; }
.star-e { top: 8%; left: 38%; animation-delay: .7s; transform: scale(.55); }.star-f { top: 23%; left: 8%; animation-delay: 2.8s; transform: scale(.65); }
.star-g { top: 34%; right: 11%; animation-delay: 1.2s; transform: scale(.6); }.star-h { top: 46%; left: 58%; animation-delay: 3s; transform: scale(.55); }
.star-i { top: 57%; right: 24%; animation-delay: 2.2s; transform: scale(.7); }.star-j { top: 53%; left: 12%; animation-delay: .3s; transform: scale(.55); }
.star-k { top: 7%; right: 8%; animation-delay: 3.4s; transform: scale(.6); }.star-l { top: 37%; left: 43%; animation-delay: 1.8s; transform: scale(.55); }
.survey-body .survey-shell { position: relative; z-index: 1; width: min(100% - 36px, 670px); min-height: calc(100dvh - 58px); margin: 29px auto; padding: 25px 31px 75px; border: 3px solid var(--ink); background: #fffaf0d6; box-shadow: 8px 8px 0 #49677980; }
.night-scene { background: #657492; }
.night-scene .pixel-landscape { background: linear-gradient(#364866 0%, #697b93 72%, #a8a18b 100%); }
.night-scene .pixel-sun { display: none; }.night-scene .pixel-moon, .night-scene .pixel-star { display: block; }
.night-scene .pixel-cloud { opacity: .42; filter: saturate(.6); }
.night-scene .hill-back { background: #667f7a; }.night-scene .hill-front { background: #4a726b; }.night-scene .pixel-grass { filter: brightness(.72); }
@keyframes cloudDrift { from { transform: translateX(-55px) scale(var(--cloud-scale, 1)); } to { transform: translateX(115px) scale(var(--cloud-scale, 1)); } }
@keyframes grassSway { from { transform: skewX(-8deg); } to { transform: skewX(8deg); } }
@keyframes starTwinkle { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pixel-cloud, .pixel-grass::before, .pixel-star { animation: none; } .pixel-cloud { transform: scale(var(--cloud-scale, 1)); } }
@media (max-width: 720px) {
  .survey-body .survey-shell { width: min(100% - 22px, 670px); min-height: calc(100dvh - 24px); margin: 12px auto; padding: 17px 17px 65px; box-shadow: 4px 4px 0 #49677980; }
  .survey-body .masthead { gap: 6px; }
  .survey-body .wordmark { font-size: 14px; }
  .pixel-sun, .pixel-moon { right: 10%; transform: scale(.65); }
  .cloud-a { left: -22%; }.cloud-b { right: -14%; }
}

/* The admin's phone layout uses one clear task at a time. */
.new-link-toggle, .detail-back { display: none; }
@media (max-width: 720px) {
  .admin-shell { width: min(100% - 32px, 560px); padding-top: 16px; padding-bottom: 48px; }
  .admin-shell .masthead { margin-bottom: 28px; }
  .admin-shell .wordmark { font-size: 13px; }
  .admin-shell .admin-top { align-items: flex-start; }
  .admin-shell .button { min-height: 44px; }
  .admin-grid { display: block; }
  .admin-sidebar > .admin-top { margin: 26px 0 12px; }
  .admin-sidebar h2 { font-size: 21px; }
  .new-link-toggle { display: block; width: 100%; text-align: left; }
  .new-link { display: none; margin: 14px 0 32px; padding: 18px; border: 1px solid var(--line); background: #faf9f6; }
  .new-link.mobile-open { display: block; }
  .new-link h2 { font-size: 20px; }
  .new-link .field { margin: 18px 0; }
  .new-link .button { width: 100%; }
  .list-item { min-height: 76px; padding: 16px 4px; }
  .list-title { font-size: 16px; }
  .list-meta { align-items: center; flex-wrap: wrap; }
  .detail { display: none; }
  .show-detail .admin-sidebar { display: none; }
  .show-detail .detail { display: block; }
  .detail-back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 24px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; }
  .detail h2 { font-size: 23px; overflow-wrap: anywhere; }
  .detail .list-meta { margin-top: 8px; }
  .link-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 24px 0; }
  .link-box input { width: 100%; }
  .link-box .button { min-width: 72px; }
  .detail-actions { margin-bottom: 30px; }
  .detail-actions .button { flex: 1 1 auto; }
  .answer-item { padding: 15px 0; }
}

/* A small welcome for visitors who open the site's root URL. */
.home-shell { display: flex; flex-direction: column; }
.home-message { margin: auto 0; padding: 28px 0 80px; }
.home-heart { display: block; margin-bottom: 32px; image-rendering: pixelated; }
.home-message h1 { margin: 0 0 28px; font-size: clamp(30px, 7vw, 38px); font-weight: 400; letter-spacing: 0; }
.home-message p { max-width: 26em; margin: 0 0 12px; font-size: 16px; line-height: 1.9; }
.home-message .home-help { margin-top: 34px; color: #55586a; font-size: 13px; }
@media (max-width: 720px) {
  .home-message { padding: 24px 0 110px; }
  .home-message p { font-size: 15px; }
}

.home-return { display: inline-block; margin-top: 20px; text-decoration: none; }
.home-return:focus-visible { outline: 3px dashed #bd704c; outline-offset: 4px; }

/* The admin shares the invitation's day and night pixel landscape. */
.admin-body .admin-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 1100px);
  min-height: calc(100dvh - 58px);
  margin: 29px auto;
  padding: 25px 31px 70px;
  border: 3px solid var(--ink);
  background: #fffaf0e8;
  box-shadow: 8px 8px 0 #49677980;
}
.admin-body .masthead { margin-bottom: 48px; }
.admin-body .login-card { margin: 8vh auto 0; }
.admin-body .field input { border: 2px solid var(--ink); background: #fffdf5; }
.admin-body .list { border-top: 2px solid var(--ink); }
.admin-body .list-item { border-bottom-color: #b8b5a8; }
.admin-body .list-item:hover, .admin-body .list-item.active { background: #fffdf5a8; }
.admin-body .detail-empty { border-top: 2px solid var(--ink); }
.admin-body .status { border-width: 2px; }
.admin-body .link-box input { border: 2px solid var(--ink); }
.admin-body .answer-item { border-top-color: #b8b5a8; }
.admin-body :focus-visible { outline: 3px dashed #bd704c; outline-offset: 4px; }
@media (max-width: 720px) {
  .admin-body .admin-shell {
    width: min(100% - 22px, 670px);
    min-height: calc(100dvh - 24px);
    margin: 12px auto;
    padding: 17px 17px 55px;
    box-shadow: 4px 4px 0 #49677980;
  }
  .admin-body .masthead { margin-bottom: 28px; }
  .admin-body .login-card { margin: 5vh auto 0; }
  .admin-body .new-link { background: #fffdf5d9; }
}
