/* Audience: friends arriving from a shared link, usually on a phone.
   Reference: a picnic scrapbook, cream stationery, apricot ink and strawberry stickers.
   Type: rounded Nunito, with local fallbacks for the first paint.
   Signature: five little spaces for memories, like stickers on a page.
   Layout: start the quiz first; lists, a sample card and folded-open FAQ below. */
@font-face {
  font-family: Nunito;
  src: url("https://fonts.gstatic.com/s/nunito/v32/XRXV3I6Li01BKofINeaBTMnFcQ.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Scrapbook Fallback"; src: local("Trebuchet MS");
  font-weight: 400 600;
  ascent-override: 101.1%; descent-override: 35.3%; line-gap-override: 0%;
}
@font-face {
  font-family: "Scrapbook Fallback"; src: local("Trebuchet MS Bold");
  font-weight: 700 900;
  ascent-override: 101.1%; descent-override: 35.3%; line-gap-override: 0%;
}
:root {
  color-scheme: light;
  --bg: #fff8eb;
  --surface: #fffdf7;
  --text: #4d302c;
  --muted: #72574d;
  --primary: #ffa68a;
  --accent: #973f36;
  --line: #e1c7ac;
  --butter: #ffdf93;
  --rose: #f9c7c5;
  --sage: #dae5c3;
  --edge: color-mix(in srgb, var(--line) 56%, var(--muted));
  --shade: color-mix(in srgb, var(--line) 56%, var(--bg));
  --cream: color-mix(in srgb, var(--butter) 35%, var(--bg));
  --apricot: color-mix(in srgb, var(--primary) 55%, var(--butter));
  --blush: color-mix(in srgb, var(--rose) 52%, var(--bg));
  --mint: color-mix(in srgb, var(--sage) 56%, var(--bg));
  --check: color-mix(in srgb, var(--primary) 28%, transparent);
  --radius: 22px;
  --type: Nunito, "Scrapbook Fallback", ui-rounded, "Trebuchet MS", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 600 16px/1.55 var(--type); color: var(--text);
  background: var(--bg); overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 48px; border: 1.5px solid var(--accent); border-radius: 16px;
  padding: 10px 21px; background: var(--primary); color: var(--text);
  box-shadow: 0 3px 0 var(--edge); font-weight: 900; text-decoration: none; cursor: pointer;
}
button:enabled:hover, .button:hover { background: var(--apricot); }
button:enabled:active, .button:active { transform: translateY(2px); box-shadow: none; }
button:disabled { opacity: .62; cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
input, select, textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 15px;
  border: 1.5px solid var(--edge); border-radius: 15px; background: var(--surface); color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 110px; resize: vertical; }
label, legend { font-weight: 800; }
label { display: block; margin: 12px 0 5px; }
small, figcaption, .muted { font-size: 14px; color: var(--muted); }
.mast, main, footer { width: min(1136px, calc(100% - 48px)); margin-inline: auto; }
.mast { display: flex; align-items: center; gap: 20px; min-height: 80px; border-bottom: 2px dashed var(--line); }
.mast a { display: inline-flex; min-height: 48px; align-items: center; text-decoration: none; color: var(--text); }
.brand { gap: 9px; white-space: nowrap; font-size: 26px; font-weight: 900; letter-spacing: -.045em; }
.brand img { width: 43px; height: 43px; transform: rotate(-6deg); }
.rule { flex: 1; }
.mycard { gap: 7px; padding: 0 17px; border: 1.5px solid var(--line); background: var(--cream); border-radius: 999px; font-weight: 800; }
.mycard::before { content: "♡"; color: var(--accent); font-size: 20px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(22px,4vw,60px); align-items: center; padding: 35px 0 30px; }
.lead { min-width: 0; }
.eyebrow, .tag { font-size: 13px; line-height: 1.4; font-weight: 900; color: var(--accent); }
.eyebrow { display: inline-block; padding: 5px 12px; background: var(--cream); border-radius: 100px; margin: 0 0 12px; letter-spacing: .035em; }
h1, h2, h3, .prompt, .display { font-family: var(--type); font-weight: 900; }
h1 { margin: 0; max-width: 21ch; font-size: clamp(38px,4.55vw,61px); line-height: 1.04; letter-spacing: -.044em; text-wrap: balance; }
.deck { max-width: 46ch; margin: 13px 0 17px; font-size: clamp(17px,1.6vw,20px); line-height: 1.45; color: var(--muted); }
.joined { display: flex; gap: 8px; align-items: stretch; }
.joined input { min-width: 0; max-width: 292px; }
.joined button { flex: 0 0 138px; justify-content: flex-start; padding-inline: 16px; white-space: nowrap; }
.joined + small { display: block; margin-top: 8px; }
.poster { display: block; position: relative; align-self: center; isolation: isolate; }
.poster::before { content: ""; position: absolute; z-index: -1; inset: 7% 0 3%; border-radius: 48% 53% 44% 55%; background: var(--cream); transform: rotate(-5deg); }
.poster img { display: block; width: 100%; height: auto; }
[data-question]:not(:empty) {
  max-width: 572px; margin: 15px 0 0; padding: 13px 17px 14px;
  border: 1.5px solid var(--line); border-radius: 5px 19px 19px 19px;
  background: var(--bg); box-shadow: 2px 3px 0 var(--shade);
}
[data-question]:has(.options) { background: var(--surface); padding: 19px; }
.tag { margin: 0 0 4px; }
.prompt { font-size: clamp(18px,1.9vw,23px); letter-spacing: -.024em; line-height: 1.25; margin: 0; }
[data-status] { color: var(--muted); max-width: 60ch; font-size: 14px; }
.steps, .selling, .tutorial ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 15px;
  border-block: 1px solid var(--line); color: var(--muted); font-size: 15px; padding: 16px 12px;
}
.steps li, .selling li { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 800; }
.steps li::before, .selling li::before, .tutorial li::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 43% 56% 48% 54%; background: var(--butter);
  border: 1.5px solid var(--edge); color: var(--text); font-size: 18px; font-weight: 900; transform: rotate(-6deg);
}
.steps li:nth-child(2)::before, .selling li:nth-child(2)::before { background: var(--rose); transform: rotate(6deg); }
.steps li:nth-child(3)::before, .selling li:nth-child(3)::before { background: var(--sage); }
.steps li:nth-child(4)::before, .selling li:nth-child(4)::before { background: var(--apricot); transform: rotate(4deg); }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,80px); align-items: center; padding: 55px 0; }
.spread figure { margin: 0; padding: 18px 14px 8px; text-align: center; background-color: var(--cream); background-image: linear-gradient(90deg,var(--check) 50%,transparent 50%), linear-gradient(var(--check) 50%,transparent 50%); background-size: 25px 25px; border-radius: 22px 38px 22px 38px; }
.sample-print { display: block; width: min(245px,86%); height: auto; margin: auto; transform: rotate(-4deg); }
figcaption { margin: 12px 0; font-weight: 700; }
.spread figcaption { display: inline-block; background: var(--surface); padding: 3px 10px; border-radius: 12px; color: var(--muted); }
.display { max-width: 16ch; font-size: clamp(30px,3.6vw,48px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 20px; }
.selling li { padding: 9px 0; }
.selling li::before { width: 26px; height: 26px; font-size: 14px; }
.reading, .tutorial, .wordtop, .countcta { max-width: 740px; margin-inline: auto; }
.reading { padding: 10px 0 40px; max-width: min(65ch, 680px); line-height: 1.8; }
h2 { font-size: clamp(25px,2.8vw,35px); line-height: 1.16; letter-spacing: -.028em; margin: 32px 0 12px; }
.reading p { margin: 0 0 1.5em; }
.reading h3 { margin: 24px 0 8px; }
.reading li { margin-bottom: .5em; }
.year-paths ul { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; }
.year-paths a { display: inline-flex; align-items: center; min-height: 48px; padding: 7px 12px; background: var(--cream); border-radius: 14px; font-weight: 800; }
.home-year-paths ul { align-items: center; }
.home-year-paths li:nth-child(n+3) a { background: transparent; padding-inline: 4px; font-weight: 700; }
.reading details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 8px 0; padding: 0 16px; }
.reading summary { padding: 14px 0; min-height: 48px; font-weight: 800; cursor: pointer; }
.reading details[open] { border-color: var(--edge); }
.countcta { text-align: center; padding: 4px 0 45px; }
.countcta a { display: inline-flex; align-items: center; min-height: 48px; background: var(--blush); border-radius: 16px; padding: 10px 18px; font-weight: 800; }
footer { border-top: 2px dashed var(--line); padding: 15px 0 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer a { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font-weight: 800; font-size: 15px; }
.wordtop, .legal { padding-top: 35px; }
.wordform { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(215px,.85fr); align-items: center; max-width: 820px; gap: 36px; margin: 22px auto; }
.wordform form, .app form[data-note], .app form[data-done], .app form[data-recover], .quizbox { background: var(--surface); border: 1.5px solid var(--line); padding: 24px; border-radius: var(--radius); box-shadow: 3px 4px 0 var(--shade); }
.wordform h2 { margin: 0 0 14px; }
.wordform button { margin-top: 15px; }
.wordfigure { margin: 0; }
.wordfigure canvas { display: block; width: 100%; height: auto; aspect-ratio: 3/4; border-radius: 20px; }
.tutorial li { margin: 18px 0; }
.tutorial li::before { margin-right: 9px; }
.screen { margin: 0; padding: 2px 14px; border-left: 4px solid var(--primary); background: var(--cream); }
.app { max-width: 780px; padding-block: 38px 48px; }
.app h1 { font-size: clamp(37px,4.5vw,57px); }
.app form { max-width: 540px; }
.app button, .app input { margin-bottom: 5px; }
.app h1 + form, .app h1 + .button { margin-top: 20px; }
.options, .wall, .emoji { display: grid; gap: 10px; }
.options { grid-template-columns: repeat(2,minmax(0,1fr)); counter-reset: answer; margin-top: 14px; }
.options button, .secondary, .emoji label { background: var(--bg); color: var(--text); border: 1.5px solid var(--edge); box-shadow: 0 2px 0 var(--shade); }
.options button { justify-content: flex-start; text-align: left; gap: 9px; padding: 10px 12px; }
.options button::before { counter-increment: answer; content: counter(answer,upper-alpha); flex: none; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--butter); color: var(--text); font-size: 13px; }
.options button:nth-child(2)::before { background: var(--rose); }
.options button:nth-child(3)::before { background: var(--sage); }
.options button:nth-child(4)::before { background: var(--apricot); }
.options button:enabled:hover, .secondary:enabled:hover { background: var(--cream); }
[data-question] > .secondary { margin-top: 12px; }
progress { width: 100%; height: 10px; margin: 5px 0 11px; border: 0; background: var(--shade); border-radius: 99px; accent-color: var(--accent); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--shade); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.wall { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 16px 0 22px; }
.slot { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-height: 139px; padding: 16px; background: var(--cream); border: 1.5px solid var(--line); border-radius: 20px 20px 20px 6px; box-shadow: 2px 3px 0 var(--shade); text-decoration: none; color: var(--text); }
.slot:nth-child(2n) { background: var(--blush); }
.slot:nth-child(3n) { background: var(--mint); }
.slot.empty { background: var(--bg); border: 2px dashed var(--edge); font-weight: 800; }
.slot.empty::before { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; background: var(--apricot); border-radius: 50%; }
.slot.empty:hover { background: var(--cream); }
.sticker { font-size: 48px; line-height: 1.1; }
.emoji { grid-template-columns: repeat(5,1fr); }
.emoji label { display: grid; place-items: center; border-radius: 14px; cursor: pointer; font-size: 24px; min-height: 48px; }
.emoji input { position: absolute; width: 1px; min-height: 0; opacity: 0; }
.emoji label:has(:checked), .emoji label:focus-within { outline: 3px solid var(--accent); background: var(--apricot); }
fieldset { border: 0; padding: 0; margin: 14px 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.actions a, .app nav a { min-height: 48px; display: inline-flex; align-items: center; }
.check { display: flex; gap: 9px; align-items: center; min-height: 48px; }
.check input { width: 21px; min-height: 21px; accent-color: var(--accent); }
.result { color: var(--accent); background: var(--cream); border-radius: 18px; padding: 13px 18px; font-size: 24px; font-weight: 900; }
.error, [role="alert"] { color: var(--accent); }
.private, [data-reveal] { border-left: 4px solid var(--primary); padding: 10px 15px; background: var(--cream); border-radius: 4px 16px 16px 4px; }
.board { margin: 12px 0 20px; padding-left: 32px; }
.board li { padding: 8px; border-bottom: 1px dashed var(--line); }
.board li::marker { color: var(--accent); font-weight: 900; }
[hidden], p:empty { display: none !important; }
@media(min-width: 781px) {
  .poster { width: 100%; max-width: 460px; justify-self: center; }
}
@media(max-width: 780px) {
  .mast { min-height: 65px; }
  .hero { display: block; padding: 98px 0 23px; }
  .hero .eyebrow { position: absolute; top: 25px; left: 0; max-width: calc(100% - 130px); font-size: 12px; }
  .hero .poster { position: absolute; width: 112px; top: 1px; right: 2px; }
  .poster::before { background: var(--cream); }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spread { gap: 24px; }
  .wordform { gap: 20px; }
}
@media(max-width: 720px) {
  .joined { flex-direction: column; gap: 12px; }
  .joined input, .joined button { width: 100%; max-width: none; height: 48px; border-radius: 16px; }
  .joined button { flex: none; justify-content: center; min-height: 48px; font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
}
@media(max-width: 720px) {
  .hero { padding-top: 22px; }
  .hero .eyebrow { position: static; display: inline-flex; align-items: center; min-height: 44px; max-width: calc(100% - 100px); margin-bottom: 10px; }
  .hero .poster { width: 86px; top: 5px; }
  .hero h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; }
}
@media(max-width: 600px) {
  .mast, main, footer { width: calc(100% - 36px); }
  .mast { gap: 10px; }.mast .brand { font-size: 23px; }.brand img { width: 36px; height: 36px; }
  .mycard { padding-inline: 14px; }
  .hero .deck { min-height: 4.35em; margin: 11px 0; }
  .joined button { padding-inline: 14px; }
  .steps { font-size: 15px; gap: 16px; padding: 13px 9px; }
  .steps li { gap: 12px; }
  .steps li::before { width: 32px; height: 32px; font-size: 15px; }
  .spread, .wordform { grid-template-columns: 1fr; }
  .spread { padding: 36px 0 20px; }
  .spread figure { width: min(100%,365px); justify-self: center; }
  .wordfigure { width: min(100%,320px); justify-self: center; }
  .wall { grid-template-columns: 1fr; }.slot { min-height: 105px; }
  .wordtop, .legal, .app { padding-top: 25px; }
  .app form[data-note], .app form[data-done], .app form[data-recover], .wordform form { padding: 17px; }
  .options { gap: 7px; }.options button { padding-inline: 9px; }
  .actions > * { flex-grow: 1; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

[data-story-panel] img { display:block; max-width:100%; height:auto; margin:1em 0; border-radius:1rem; }

@media (max-width:600px) { .mast .brand { font-size:clamp(15px,4.6vw,22px); gap:5px; } .mast .brand img { width:29px;height:29px; } .mast .mycard { flex-shrink:0; } }

@media (max-width:360px) {
  .mast { justify-content:space-between; gap:4px; }
  .mast .rule { display:none; }
  .mast .mycard { padding-inline:8px; font-size:14px; gap:3px; }
}

[data-wall-preview] { margin: 1.5rem 0; padding: clamp(14px,3vw,24px); background: var(--cream); border: 1.5px solid var(--line); border-radius: 22px; }
.memory-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.memory-tile { min-width: 0; min-height: 66px; padding: 5px 2px; display: grid; place-content: center; background: var(--bg); color: var(--text); border: 1.5px dashed var(--edge); border-radius: 14px; }
.memory-tile strong { font-size: 1.25rem; } .memory-tile span { font-size: .8rem; }
.memory-tile[aria-pressed="true"] { background: var(--apricot); border: 2px solid var(--accent); }
[data-wall-form] small { display: block; text-align: right; }
[data-note-reader] { border-left: 4px solid var(--primary); padding: 0 12px; }
[data-reader-body] { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 12-02: 正文与新内链一节的链接要看得出来能点 */
.reading a, .related-quizzes a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reading a:hover, .reading a:focus-visible, .related-quizzes a:hover { text-decoration-thickness: 2px; }
.related-quizzes { border-top: 1px solid var(--line); }
.guide ol { padding-left: 1.4em; }
.guide li { margin: .35em 0; }
@media (max-width: 600px) { .guide h2 { font-size: 22px; } }


/* 12-02 设计审稿：手机首屏呼吸感与长列表分节节奏 */
.guide h2 { margin-bottom: 18px; border-bottom: 2px solid var(--edge); padding-bottom: 6px; }
.guide ol li { margin: .6em 0; padding-block: 4px; }
.eyebrow { font-weight: 600; }
.mast .mycard { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 600px) {
  .mast .mycard { min-height: 44px; padding: 0 12px; }
  .guide h2 { margin-top: 28px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; line-height: 1.2; }
  .guide h1 { margin-bottom: 1rem; }
  .guide .deck, .guide p { font-size: 1rem; }
}


/* 12-02 设计审稿第二轮：长尾页首屏主行动按钮 + FAQ 折叠可辨识 */
.guide .guide-cta { margin: 6px 0 26px; }
.guide .guide-cta .button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-size: 17px; }
.guide details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.guide details summary { position: relative; cursor: pointer; list-style: none; padding: 10px 0 10px 26px; font-weight: 700; }
.guide details summary::-webkit-details-marker { display: none; }
.guide details summary::before { content: "+"; position: absolute; left: 4px; top: 9px; color: var(--accent); font-weight: 800; }
.guide details[open] summary::before { content: "−"; }
.guide details summary:hover { background: var(--cream); }
.guide details p { margin: 0 0 12px 26px; }

/* A friend's invitation sits above the scoreboard, sharing tools and private wall. */
.invitation { max-width: 750px; margin-inline: auto; }
.invitation-paper { position: relative; padding: clamp(21px, 5vw, 44px); background: #fff5de; border: 1px solid #dbb692; border-radius: 8px 30px 30px 30px; box-shadow: 0 4px 0 #f1dfca; }
.invitation-edition { margin: 0 60px 12px 0; font-size: .8rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: #8c493c; }
.invitation-stamp { position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 43px; height: 49px; border: 2px dashed #b86754; outline: 4px solid #ffe4d4; border-radius: 3px; background: #ffe4d4; color: #a2493f; font: 900 24px/1 var(--type); transform: rotate(8deg); }
.invitation h1 { max-width: 17ch; margin-right: 36px; font-size: clamp(2.1rem, 5vw, 3.45rem); }
.invitation-lead { max-width: 49ch; margin: 12px 0 0; color: #654538; font-size: clamp(1rem, 2vw, 1.16rem); }
.invitation [data-start] { display: flex; align-items: end; gap: 12px; margin-top: 24px; }
.invitation [data-start] label { flex: 1; margin: 0; max-width: 285px; }
.invitation [data-start] input { margin: 4px 0 0; }
.invitation [data-start] button, .invitation-tools button { margin-bottom: 0; }
.invitation [data-question]:has(.options) { margin: 20px 0 0; max-width: none; }
.invitation h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.invitation .prompt { margin-top: 5px; }
.invitation-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 20px; margin: 14px 0; }
.invitation-score { font-weight: 900; color: var(--accent); line-height: 1.05; }
.invitation-score strong { font-size: clamp(3.4rem, 7vw, 5rem); letter-spacing: -.055em; }
.invitation-score span { font-size: 1.65rem; }
.invitation [data-rank] { margin: 0; font-weight: 800; }
.invitation-board, .invitation-share { margin: 25px 0; }
.invitation-board ol { list-style-position: inside; margin: 0; padding: 0; }
.invitation-board li { padding: 9px 12px; border-bottom: 1px dashed var(--line); }
.invitation-board li::marker { color: var(--accent); font-weight: 800; }
.invitation-board li span { float: right; font-weight: 900; }
.invitation-share { padding: 19px clamp(16px, 3vw, 25px) 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.invitation-tools, .invitation-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.invitation-tools [data-invite] { background: var(--cream); border-color: var(--edge); box-shadow: 0 2px 0 var(--shade); }
.invitation[data-view="owner"] [data-invite] { background: var(--primary); border-color: var(--accent); }
.invitation .quiet-action { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 2px; border: 0; border-radius: 4px; color: var(--accent); background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: .22em; font-weight: 800; }
.invitation .quiet-action:hover { color: var(--text); }
.invitation [data-report] { font-size: .88rem; color: var(--muted); }
.invitation .reading { margin: 24px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); }
.invitation .reading h2 { margin: 1.4em 0 .5em; }
@media (max-width: 520px) {
  .invitation [data-start] { display: grid; gap: 12px; }
  .invitation [data-start] label { max-width: none; }
  .invitation h1 { margin-right: 23px; }
  .invitation-stamp { top: 15px; right: 15px; width: 32px; height: 36px; font-size: 18px; }
}
.score-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.score-actions [data-status] { flex-basis: 100%; margin: 0; }
.invitation .shared-result { margin: 0 54px 18px 0; border-left: 4px solid var(--accent); padding: 5px 12px; font-weight: 900; color: var(--accent); }

/* Both pickers use native radio inputs for keyboard and screen-reader selection. */
.choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-field legend { padding: 0 0 8px; }
.choice-grid { display: grid; gap: 6px; }
.channel-field { margin: 0 0 16px; }
.channel-grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
.choice-tile { position: relative; min-width: 0; margin: 0; }
.choice-tile input[type="radio"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.choice-face { text-align: center; position: relative; display: grid; place-items: center; align-content: center; gap: 4px; height: 100%; min-height: 58px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: .78rem; line-height: 1.12; font-weight: 800; cursor: pointer; }
.choice-tile:hover .choice-face { border-color: var(--edge); background: var(--cream); }
.choice-tile input:checked + .choice-face { border-color: var(--accent); background: var(--blush); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-tile input:checked + .choice-face::after { content: ""; position: absolute; top: 5px; right: 6px; width: 4px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.choice-tile input:focus-visible + .choice-face { outline: 3px solid var(--accent); outline-offset: 2px; }
.app form[data-wall-form] { max-width: none; }
[data-wall-form] .wall-picks { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.wall-picks > label { width: min(100%,13rem); }
.sticker-grid { grid-template-columns: repeat(8,minmax(0,1fr)); }
.sticker-grid .choice-face { padding-block: 5px 7px; min-height: 68px; }
.sticker-grid canvas { display: block; width: 38px; height: 38px; }
.memory-tile strong { display: inline-flex; justify-content: center; align-items: center; gap: 2px; }
.memory-tile canvas { display: block; width: 31px; height: 31px; }
@media (max-width: 680px) {
  .channel-grid, .sticker-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 350px) {
  .channel-grid { gap: 4px; }
  .channel-grid .choice-face { min-height: 52px; font-size: .7rem; }
}
@media (forced-colors: active) {
  .choice-tile input:checked + .choice-face { outline: 2px solid Highlight; }
}
