@font-face {
  font-family: "Snack Suit";
  src: url("assets/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Snack Batang";
  src: url("assets/snack-v1/reading.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #392b2b;
  --muted: #796c63;
  --faint: #a79887;
  --paper: #f5f0e6;
  --paper-light: #fffcf5;
  --accent: #7e3944;
  --accent-soft: #ede0db;
  --line: #d6c9b8;
  --gold: #a27e48;
  --serif: "Snack Batang", "Batang", serif;
  --sans: "Snack Suit", "Malgun Gothic", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
body[data-persona="yeonhwa"] {
  --ink: #49343b;
  --muted: #846c71;
  --faint: #ab9496;
  --paper: #f6efea;
  --paper-light: #fffaf5;
  --accent: #934956;
  --accent-soft: #f0dde0;
  --line: #dcc7c7;
  --gold: #ad856d;
}
body[data-persona="noa"] {
  color-scheme: dark;
  --ink: #eee8da;
  --muted: #b4b1bb;
  --faint: #8f8f9e;
  --paper: #151b2d;
  --paper-light: #1c253b;
  --accent: #dcc391;
  --accent-soft: #283249;
  --line: #414655;
  --gold: #c4a76f;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
fieldset { min-width: 0; }
::selection { color: var(--paper-light); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1[tabindex="-1"]:focus { outline: none; }
.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;
}

.snack-topbar {
  min-height: 84px;
  width: min(100% - 80px, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.4;
  letter-spacing: -.065em;
  text-decoration: none;
}
.brand small { color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: .02em; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 0;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }
#snack-motion {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .015em;
  text-decoration: none;
}
#snack-main { width: 100%; padding-bottom: 88px; }
.eyebrow, .kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .16em;
}

/* Writing beside the character, with open paper and generous line spacing. */
#snack-input { width: min(100% - 80px, 1240px); margin: 0 auto; }
.input-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: start; gap: clamp(40px, 5vw, 78px); padding-top: 64px; }
.input-art { position: sticky; top: 34px; min-width: 0; }
.input-art img { width: 100%; height: auto; background: var(--accent-soft); }
.input-art figcaption {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  padding: 27px 6px 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(18px, 1.75vw, 23px);
  line-height: 1.9;
  word-break: keep-all;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.input-art figcaption::after { content: "✦"; position: absolute; left: calc(50% - 15px); bottom: -11px; width: 30px; color: var(--gold); background: var(--paper); font-size: 13px; }
.input-letter { min-width: 0; padding: 8px 0 0; }
.input-letter > .library-return { margin: -9px 0 18px; }
.input-letter h1 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -.045em;
  word-break: keep-all;
}
#input-intro { margin: 19px 0 36px; color: var(--muted); font-size: 14px; line-height: 1.95; word-break: keep-all; }
#snack-form { position: relative; }
.field { display: block; min-width: 0; margin: 0 0 27px; }
.field > label, .field > legend, .field-label {
  display: block;
  padding: 0;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.field label small, .field-label small { font-size: 11px; margin-left: 6px; color: var(--muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-row:has(#gender-field[hidden]) { grid-template-columns: minmax(0, 1fr); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-bottom-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
select { padding-right: 28px; }
option { color: var(--ink); background: var(--paper); }
textarea { resize: vertical; min-height: 108px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; flex: 0 0 auto; margin: 0; }
.field-note { margin-top: 9px; font-size: 12px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.form-footnote { text-align: center; margin-top: 13px; }
.input-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 5px 0 20px; }
.input-switch label, label.input-switch { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; font-size: 13px; }
#snack-form details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 27px 0; }
#snack-form details + details { border-top: 0; margin-top: -27px; }
#snack-form summary { min-height: 56px; padding: 15px 3px; cursor: pointer; font-size: 13px; color: var(--muted); }
#snack-form details[open] > :not(summary) { margin-left: 3px; margin-right: 3px; }
#snack-form details[open] summary { color: var(--ink); margin-bottom: 9px; }
.member-fieldset { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; margin: 30px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); }
.member-fieldset > legend { padding: 0 12px 0 0; font-family: var(--serif); font-size: 21px; color: var(--accent); }
.member-fieldset > .field:first-of-type { grid-column: 1 / -1; }
.member-fieldset > .field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.member-fieldset .text-button { grid-column: 1 / -1; margin-left: auto; display: block; }
.form-error { padding: 12px 0; color: var(--accent); font-size: 13px; line-height: 1.8; }
.form-error:empty { display: none; }
.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  transition: background .2s, color .2s, border-color .2s;
}
.primary-button { padding: 15px 27px; border: 1px solid var(--accent); background: var(--accent); color: var(--paper-light); }
.secondary-button { padding: 13px 23px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.text-button { min-height: 44px; padding: 9px 2px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; font-size: 12px; }
#snack-form > .primary-button { width: 100%; margin-top: 15px; }
body[data-persona="noa"] .primary-button { color: #171d2f; }
@media (hover: hover) { .primary-button:hover { filter: brightness(1.1); } .secondary-button:hover { border-color: var(--accent); background: var(--accent-soft); } .text-button:hover { color: var(--accent); } }

/* A small, visibly active scene while the calculation is under way. */
#snack-loading { width: min(100% - 80px, 1040px); margin: 64px auto 0; text-align: center; }
.loading-scene { position: relative; overflow: hidden; background: var(--paper-light); }
.loading-scene img { width: 100%; height: auto; max-height: 570px; object-fit: cover; }
.loading-lights { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 62%, rgb(255 225 161 / .18), transparent 36%), radial-gradient(ellipse at 78% 22%, rgb(255 245 193 / .15), transparent 27%); animation: snack-lamplight 4.6s ease-in-out infinite; mix-blend-mode: screen; }
.loading-copy { max-width: 550px; margin: 0 auto; padding: 31px 12px 0; }
.loading-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 3vw, 35px); line-height: 1.7; word-break: keep-all; }
.loading-copy p { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; word-break: keep-all; }
.loading-copy .eyebrow { margin-top: 0; margin-bottom: 9px; color: var(--accent); font-size: 11px; }
.loading-dots { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 30px; margin: 13px 0 0; }
.loading-dots span, .loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: snack-wait 1.5s ease-in-out infinite; }
.loading-dots :nth-child(2) { animation-delay: .17s; }
.loading-dots :nth-child(3) { animation-delay: .34s; }
@keyframes snack-lamplight { 0%,100% { opacity: .35; } 50% { opacity: .95; } }
@keyframes snack-wait { 0%,65%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }

/* The reading is a single page: a character scene, a personal line, then evidence. */
#snack-result { width: min(100% - 80px, 1040px); margin: 56px auto 0; }
.result-shell { position: relative; }
.result-shell > .library-return { margin-bottom: 16px; }
.result-page { position: relative; background: var(--paper-light); box-shadow: 0 15px 60px rgb(42 27 15 / .035); }
.result-art { position: relative; overflow: hidden; background: var(--accent-soft); }
.result-art img { width: 100%; height: auto; }
.result-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: linear-gradient(transparent, var(--paper-light)); pointer-events: none; }
.result-letter { max-width: 790px; margin: 0 auto; padding: 22px clamp(28px, 5vw, 68px) 65px; }
.result-speech { position: relative; padding: 0 0 35px; margin-bottom: 39px; text-align: center; border-bottom: 1px solid var(--line); }
.result-speech .character-name { display: block; color: var(--gold); font-size: 12px; letter-spacing: .12em; margin-bottom: 13px; }
.result-speech p { font-family: var(--serif); font-size: clamp(21px, 2.5vw, 29px); line-height: 1.9; word-break: keep-all; }
.result-speech::after { content: "✦"; position: absolute; width: 32px; left: calc(50% - 16px); bottom: -11px; background: var(--paper-light); color: var(--gold); font-size: 12px; }
.result-heading .eyebrow { letter-spacing: .09em; }
.result-heading h1 { font-family: var(--serif); font-size: clamp(30px, 3.9vw, 46px); font-weight: 400; line-height: 1.6; letter-spacing: -.045em; margin: 15px 0 16px; word-break: keep-all; overflow-wrap: anywhere; }
#result-basis { color: var(--muted); font-size: 12px; line-height: 1.9; }
#result-paragraphs { margin-top: 34px; }
#result-paragraphs p { margin-top: 22px; color: var(--ink); font-family: var(--serif); font-size: clamp(18px, 1.9vw, 22px); line-height: 2.05; word-break: keep-all; overflow-wrap: break-word; }
#result-paragraphs p:first-child { margin-top: 0; }
#result-extra:empty { display: none; }
#result-extra { margin-top: 36px; }
.result-note, .pair-note, .member-note, .star-note { position: relative; padding: 23px 0; border-top: 1px solid var(--line); }
.result-note h2, .result-note h3, .pair-note h2, .pair-note h3, .member-note h2, .member-note h3, .star-note h2, .star-note h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.65; margin-bottom: 12px; word-break: keep-all; }
.result-note p, .pair-note p, .member-note p, .star-note p { font-size: 14px; line-height: 1.95; word-break: keep-all; overflow-wrap: break-word; }
.result-note .eyebrow, .pair-note .eyebrow, .member-note .eyebrow, .star-note .eyebrow { margin-bottom: 9px; color: var(--accent); font-size: 11px; line-height: 1.85; letter-spacing: .06em; }
.result-note small, .pair-note small, .member-note small, .star-note small { color: var(--muted); font-size: 11px; line-height: 1.85; }
.recipe-list { list-style: none; margin: 0; padding: 0; }
.ingredient { --element: #8a7760; display: grid; grid-template-columns: minmax(85px, 1.2fr) minmax(60px, 2fr) minmax(40px, .45fr); align-items: center; gap: 14px; margin: 19px 0; color: var(--ink); font-size: 14px; }
.ingredient[data-element="木"], .ingredient[data-element="wood"], .ingredient[data-element="목"] { --element: #6e8769; }
.ingredient[data-element="火"], .ingredient[data-element="fire"], .ingredient[data-element="화"] { --element: #b9715f; }
.ingredient[data-element="土"], .ingredient[data-element="earth"], .ingredient[data-element="토"] { --element: #b29258; }
.ingredient[data-element="金"], .ingredient[data-element="metal"], .ingredient[data-element="금"] { --element: #98999c; }
.ingredient[data-element="水"], .ingredient[data-element="water"], .ingredient[data-element="수"] { --element: #69839b; }
.ingredient strong { font-weight: 500; }
.ingredient .ingredient-bar, .ingredient .ingredient-track, .ingredient .bar, .ingredient progress { display: block; height: 4px; border: 0; background: var(--accent-soft); border-radius: 0; overflow: hidden; }
.ingredient .ingredient-bar > span, .ingredient .ingredient-fill, .ingredient .bar > span { display: block; height: 100%; background: var(--element); width: var(--amount, var(--percentage, 0%)); }
.ingredient progress { width: 100%; accent-color: var(--element); }
.ingredient progress::-webkit-progress-bar { background: var(--accent-soft); }
.ingredient progress::-webkit-progress-value { background: var(--element); }
.ingredient progress::-moz-progress-bar { background: var(--element); }
.ingredient .ingredient-value, .ingredient output { text-align: right; font-size: 12px; color: var(--muted); }
.dohwa-seal { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 19px; border-left: 2px solid var(--accent); padding: 12px 23px; color: var(--accent); font-family: var(--serif); }
.dohwa-seal > span { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
.dohwa-seal > strong { font-size: 29px; line-height: 1.6; font-weight: 400; letter-spacing: -.03em; }
.star-trio { counter-reset: star; }
.star-note { padding-left: 37px; }
.star-note::before { counter-increment: star; content: "0" counter(star); position: absolute; left: 0; top: 30px; color: var(--gold); font-size: 11px; letter-spacing: .08em; }
.star-note > .eyebrow { color: var(--gold); }
.moon-choice { min-width: 0; margin: 28px 0 2px; padding: 22px 0 0; border: 0; border-top: 1px dashed var(--line); }
.moon-choice > legend { max-width: 100%; padding: 0 12px 0 0; color: var(--accent); font-family: var(--serif); font-size: 21px; line-height: 1.65; word-break: keep-all; }
.moon-choice .moon-choice-hint { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.moon-choice-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.moon-choice-option { display: flex; align-items: center; gap: 12px; min-height: 64px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 32px 32px 4px 4px; background: transparent; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s; }
.moon-choice-option > span { font-family: var(--serif); font-size: 18px; word-break: keep-all; overflow-wrap: anywhere; }
.moon-choice-option:has(input:checked) { border-color: var(--gold); background: var(--accent-soft); }
.moon-choice-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.moon-choice-answer:not(:empty) { margin-top: 21px; padding: 4px 0 4px 17px; border-left: 2px solid var(--gold); }
.moon-choice-answer .moon-choice-line { color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.9; }
.moon-choice .moon-choice-limit { margin-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.8; }
@media (max-width: 560px) {
  .moon-choice-options { grid-template-columns: minmax(0,1fr); }
  .moon-choice-option { min-height: 54px; padding: 12px 16px; border-radius: 24px 24px 4px 4px; }
  .moon-choice > legend { font-size: 20px; }
  .moon-choice-answer .moon-choice-line { font-size: 18px; }
}
.group-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.group-members .member-note { min-width: 0; }
.pair-note { margin-top: 8px; }
.pair-details { margin-top: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pair-details > summary { padding: 17px 0; min-height: 56px; color: var(--muted); font-size: 13px; cursor: pointer; }
.pair-details[open] > summary { color: var(--accent); }
.pair-details .pair-note { padding-left: 17px; border-top-style: dashed; }
.result-tools { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 32px 20px 0; }
.result-tools > button { min-width: 154px; }
#share-status { flex-basis: 100%; min-height: 23px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.85; }
.continue-letter { max-width: 680px; margin: 45px auto 0; border-top: 1px solid var(--line); padding: 30px 22px 0; text-align: center; }
.continue-letter p { max-width: 490px; margin: 0 auto; color: var(--muted); font-family: var(--serif); font-size: 18px; line-height: 1.95; word-break: keep-all; }
#continue-reading { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 18px; padding: 9px 7px; text-decoration: none; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 14px; }
#continue-reading > span { margin-left: 19px; font-size: 22px; font-weight: 300; }
#other-snacks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 32px auto 0; padding: 0 15px; text-align: center; }
body[data-persona="noa"] .result-page { box-shadow: 0 18px 90px rgb(0 0 0 / .13); }
body[data-persona="noa"] .star-note { border-top-color: #4c4c57; }
.snack-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 22px; width: min(100% - 80px, 1120px); margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.snack-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }

/* Explicit motion preference wins; without it, honour the system preference. */
body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body[data-motion="off"] .loading-lights { opacity: .4; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:not([data-motion="on"]) *, body:not([data-motion="on"]) *::before, body:not([data-motion="on"]) *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .snack-topbar { width: calc(100% - 48px); min-height: 74px; gap: 20px; }
  #snack-input { width: min(100% - 48px, 660px); }
  .input-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 36px; }
  .input-art { position: relative; top: auto; }
  .input-art figcaption { font-size: 23px; padding-top: 25px; }
  .input-letter { max-width: 570px; width: 100%; margin: 0 auto; padding: 0 16px; }
  .input-letter h1 { font-size: 36px; }
  #snack-loading { width: min(100% - 48px, 760px); margin-top: 36px; }
  #snack-result { width: min(100% - 48px, 760px); margin-top: 36px; }
}

@media (max-width: 560px) {
  .snack-topbar { width: calc(100% - 36px); gap: 13px; min-height: 68px; }
  .brand { font-size: 28px; }
  .brand small { display: none; }
  .back-link { font-size: 12px; gap: 5px; }
  #snack-motion { font-size: 10px; min-height: 44px; padding: 7px 9px; }
  #snack-main { padding-bottom: 62px; }
  #snack-input { width: 100%; }
  .input-layout { padding-top: 24px; gap: 39px; }
  .input-art img { width: 100%; }
  .input-art figcaption { max-width: calc(100% - 52px); padding: 22px 0 23px; font-size: 21px; }
  .input-letter { padding: 0 24px; }
  .input-letter h1 { font-size: 31px; margin-top: 12px; }
  #input-intro { margin-top: 16px; margin-bottom: 29px; font-size: 13px; }
  .field { margin-bottom: 23px; }
  .field-row { gap: 16px; }
  .field-note { font-size: 11px; }
  .primary-button { min-height: 52px; padding: 14px 18px; }
  #snack-loading { width: 100%; margin-top: 24px; }
  .loading-copy { padding: 28px 26px 0; }
  .loading-copy h1 { font-size: 25px; }
  #snack-result { width: 100%; margin-top: 24px; }
  .result-letter { padding: 22px 26px 42px; }
  .result-speech { padding-bottom: 28px; margin-bottom: 29px; }
  .result-speech p { font-size: 22px; }
  .result-speech .character-name { font-size: 11px; margin-bottom: 12px; }
  .result-heading h1 { font-size: 31px; margin-top: 13px; line-height: 1.65; }
  #result-basis { font-size: 11px; }
  #result-paragraphs { margin-top: 26px; }
  #result-paragraphs p { font-size: 19px; line-height: 2; margin-top: 21px; }
  #result-extra { margin-top: 30px; }
  .result-note, .member-note, .pair-note, .star-note { padding-top: 21px; padding-bottom: 21px; }
  .result-note h2, .result-note h3, .member-note h2, .member-note h3, .pair-note h2, .pair-note h3, .star-note h2, .star-note h3 { font-size: 22px; }
  .result-note p, .member-note p, .pair-note p, .star-note p { font-size: 13px; }
  .group-members { grid-template-columns: minmax(0, 1fr); }
  .star-note { padding-left: 30px; }
  .star-note::before { top: 28px; }
  .ingredient { grid-template-columns: minmax(75px, 1.3fr) minmax(35px, 1.8fr) 35px; gap: 12px; font-size: 13px; }
  .result-tools { padding: 25px 22px 0; gap: 10px; }
  .result-tools > button { flex: 1 1 0; min-width: 0; font-size: 13px; padding-left: 12px; padding-right: 12px; }
  .continue-letter { margin: 33px 24px 0; padding: 27px 2px 0; }
  .continue-letter p { font-size: 17px; }
  #continue-reading { font-size: 13px; }
  .snack-footer { width: calc(100% - 44px); gap: 2px 17px; padding-top: 17px; font-size: 10px; }
}

@media (max-width: 350px) {
  .snack-topbar { width: calc(100% - 28px); gap: 9px; }
  .back-link { font-size: 11px; }
  .input-letter { padding-left: 20px; padding-right: 20px; }
  .field-row { gap: 13px; }
  .field-row:has(input[type="date"]), .member-fieldset { grid-template-columns: minmax(0, 1fr); }
  .result-letter { padding-left: 22px; padding-right: 22px; }
  .result-heading h1 { font-size: 29px; }
  #result-paragraphs p { font-size: 18px; }
}
