@font-face {
  font-family: "LXGW WenKai Lite";
  src: url("fonts/LXGWWenKaiLite-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/* 自行编写的手帐样式；视觉参考：https://www.getpapercss.com/ */
:root {
  --paper: #fffdf6; --ink: #2c3934; --muted: #68716a; --line: #d7d7c9;
  --yellow: #ffda59; --sky: #bce1f1; --tomato: #d64632; --blue: #275a71;
  --hand-border: 5px 12px 7px 9px / 10px 5px 12px 6px;
  font-family: "Neucha", "Comic Sans MS", "LXGW WenKai Lite", cursive;
  font-synthesis: weight; line-height: 1.65; color: var(--ink); background: #f8f5ed; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background-image: linear-gradient(#7b897510 1px, transparent 1px), linear-gradient(90deg, #7b897510 1px, transparent 1px); background-size: 24px 24px; }
button, input, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
button { min-height: 44px; padding: 9px 18px; border: 1.5px solid var(--ink); border-radius: var(--hand-border); background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, .result:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
a { color: inherit; }
::selection { background: #ffe696; color: var(--ink); }
main { max-width: 1224px; margin: auto; padding: 0 40px; }
header { min-height: 76px; display: flex; align-items: center; gap: 24px; border-bottom: 1.5px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.section-tabs { display: flex; align-self: stretch; align-items: stretch; gap: 6px; margin-left: auto; }
.section-tab { min-height: 44px; padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-weight: 600; }
.section-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tomato); }
.language-picker { display: flex; align-items: center; gap: 7px; margin-left: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
#language-select { min-height: 40px; max-width: 142px; padding: 6px 26px 6px 9px; border: 1px solid var(--ink); border-radius: 5px 7px 4px 6px; background: var(--paper); color: var(--ink); font-size: 13px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 38px; background: var(--yellow); border: 1.8px solid var(--ink); border-radius: 9px 6px 10px 5px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-9deg); font-family: Georgia, serif; font-size: 31px; line-height: 1; }
.brand-dot { margin-left: -9px; color: var(--tomato); }
.edition { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.collection-link { margin-left: auto; font-size: 13px; text-decoration: none; padding: 10px 0; font-weight: 650; }
.collection-link span { display: inline-block; margin-left: 8px; font-size: 20px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 45px 4px 42px; }
.eyebrow { margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.intro .eyebrow { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.little-star { color: var(--tomato); font-size: 23px; vertical-align: middle; margin-right: 5px; }
h1 { margin: 4px 0 12px; font-size: 44px; font-weight: 600; line-height: 1.4; }
.marker { position: relative; isolation: isolate; white-space: nowrap; }
.marker::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 2px; height: 13px; background: var(--yellow); z-index: -1; border-radius: 36% 15% 20% 8%; transform: rotate(-2deg); }
.intro-copy > p:last-child { margin: 0; font-size: 14px; color: var(--muted); }
.intro-doodle { width: 185px; flex-shrink: 0; margin-right: 24px; transform: rotate(6deg); }
.intro-doodle svg { display: block; width: 170px; margin: auto; }
.intro-doodle > span { display: block; text-align: center; font-size: 12px; letter-spacing: 0; }
h2 { font-size: 21px; line-height: 1.5; margin: 0; font-weight: 600; }
.workspace { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: 52px; }
.workspace > * { min-width: 0; }
.panel { position: relative; padding: 25px 28px 26px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--hand-border); box-shadow: 4px 5px 0 #e2dfd2; }
.panel::before { content: ""; position: absolute; top: -9px; left: 30px; width: 70px; height: 17px; background: #bce1f1aa; transform: rotate(-3deg); clip-path: polygon(2% 0, 97% 0, 100% 80%, 96% 100%, 0 96%); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 20px; }
.step { display: inline-grid; place-items: center; font-family: Georgia, serif; font-style: italic; font-size: 17px; background: var(--yellow); width: 31px; height: 30px; margin-right: 8px; border: 1px solid var(--ink); border-radius: 50% 40% 47% 43%; transform: rotate(-6deg); vertical-align: middle; }
.hand-note { color: var(--muted); font-size: 11px; white-space: nowrap; transform: rotate(-4deg); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.75; }
label, legend { font-size: 14px; font-weight: 650; }
fieldset { border: 0; padding: 0; min-width: 0; margin: 0 0 17px; }
legend { padding: 0; margin-bottom: 9px; }
.field-hint { font-size: 11px; font-weight: 400; color: var(--muted); }
.field-heading { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.field-heading > label:first-child { flex: 1; }
.field-heading output { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; text-align: right; }
#minutes-value { width: 5ch; }
#budget-value { width: 16ch; }
#walkingMinutes-value { width: 7ch; }
.range-field { margin-bottom: 15px; }
.range-controls { min-width: 0; }
/* 原生滑块保留键盘和触摸能力；轨道与可点击刻度的中心对齐。 */
input[type="range"] { --progress: 0%; --stops: 6; display: block; appearance: none; -webkit-appearance: none; width: calc(100% - 100% / var(--stops) + 25px); height: 44px; margin: 0 calc(100% / (var(--stops) * 2) - 12.5px); padding: 0; background: transparent; border: 0; cursor: grab; accent-color: var(--ink); touch-action: pan-y; }
.walk-field input[type="range"] { --stops: 4; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border: 1.4px solid var(--ink); border-radius: 20px 13px 19px 12px; background: linear-gradient(to right, var(--sky) var(--progress), #e8e9df var(--progress)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 25px; height: 25px; margin-top: -10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 43% 51% 44% 48%; box-shadow: 2px 2px 0 #2c393433; }
input[type="range"]::-moz-range-track { height: 6px; border: 1.4px solid var(--ink); border-radius: 20px; background: #e8e9df; }
input[type="range"]::-moz-range-progress { height: 6px; background: var(--sky); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 43% 51% 44% 48%; box-shadow: 2px 2px 0 #2c393433; }
.range-ticks { --stops: 6; position: relative; display: block; width: calc(100% - 100% / var(--stops)); height: 44px; margin-inline: calc(100% / (var(--stops) * 2)); }
.range-field[data-range="minutes"] .range-ticks { --stops: 5; }
.walk-field .range-ticks { --stops: 4; }
.range-ticks button { position: absolute; left: var(--tick-position); top: 0; transform: translateX(-50%); border: 0; padding: 6px 2px; min-width: 44px; background: transparent; box-shadow: none; font-size: 11px; font-weight: 600; color: var(--ink); border-radius: 5px; white-space: nowrap; }
.range-ticks button::before { content: ""; position: absolute; width: 2px; height: 6px; top: 1px; left: 50%; background: var(--ink); }
.range-ticks button[aria-pressed="true"] { font-weight: 650; background: #ffda5940; }
.range-ticks button[aria-pressed="true"]::before { width: 3px; background: var(--ink); }
.budget-entry { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.budget-input-wrap { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.budget-input-wrap input#budget-amount { width: 10ch; min-height: 44px; margin: 0; padding: 8px 9px; text-align: right; }
.budget-error { margin: 5px 0 0; color: #9e3528; font-size: 12px; }
.unlimited-option { position: relative; cursor: pointer; }
.unlimited-option span { display: grid; place-items: center; min-width: 51px; min-height: 44px; padding: 6px 8px; font-size: 12px; border: 1px dashed #849086; border-radius: var(--hand-border); }
.unlimited-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.unlimited-option input:checked + span { border: 1.5px solid var(--ink); background: var(--sky); box-shadow: 2px 2px 0 var(--ink); }
.unlimited-option input:checked + span::before { content: "✓"; position: absolute; top: -6px; right: -4px; background: var(--paper); width: 14px; height: 14px; border-radius: 50%; font-size: 11px; line-height: 14px; }
.unlimited-option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.is-unlimited input[type="range"]::-webkit-slider-runnable-track { background: #e8e9df; }
.is-unlimited input[type="range"]::-webkit-slider-thumb { background: var(--paper); border-style: dashed; box-shadow: none; }
.is-unlimited input[type="range"]::-moz-range-progress { background: #e8e9df; }
.is-unlimited input[type="range"]::-moz-range-thumb { background: var(--paper); border-style: dashed; box-shadow: none; }
.range-help { margin: 0 0 3px; }
.walk-field { margin-top: 3px; margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { flex: 1; min-width: 70px; position: relative; cursor: pointer; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choices span { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 8px 6px; background: #f7f6ee; border: 1px solid #c5cabf; border-radius: var(--hand-border); font-size: 12px; }
.choices input:checked + span { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); background: var(--yellow); color: var(--ink); font-weight: 750; }
.choices input:checked + span::after { content: "✓"; font-size: 11px; }
.choices input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.weather-choices label:nth-child(2) input:checked + span { background: var(--sky); }
.weather-choices label:nth-child(3) input:checked + span { background: #dce4e3; }
.filter-moods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.filter-moods label { grid-column: span 2; min-width: 0; }
.filter-moods label:nth-last-child(-n + 2) { grid-column: span 3; }
.filter-moods input:checked + span { background: #fbd4c6; }
.draw-area { border-top: 1px dashed #b8beb2; padding-top: 13px; }
#candidate-count { margin: 0 0 11px; }
.primary { background: var(--yellow); color: var(--ink); width: 100%; box-shadow: 3px 3px 0 var(--ink); }
.draw-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 53px; font-size: 16px; font-weight: 600; }
.draw-button > span:last-child { margin-left: auto; }
.dice-icon { font-size: 26px; line-height: 1; margin-right: auto; transform: rotate(-12deg); }
.secondary { background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.dark { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 #768779; }
.walking-notice { padding: 10px 12px; margin: 0 0 13px; background: #fcebc6; border-left: 3px solid #bd8033; font-size: 12px; line-height: 1.8; }
/* 今日签：一张贴在手帐上的打孔票券。 */
.result-stage { padding: 18px 12px 0 2px; position: sticky; top: 18px; }
.stage-note { margin: 0 0 27px; text-align: center; font-size: 13px; color: var(--muted); transform: rotate(3deg); }
.stage-note > span { font-size: 30px; color: var(--tomato); vertical-align: middle; margin-right: 8px; }
.result { position: relative; isolation: isolate; padding: 28px 30px 0; background: #fff9df; border: 1.8px solid var(--ink); border-radius: 8px 4px 6px 10px; box-shadow: 7px 8px 0 #dddcca; text-align: center; transform: rotate(1.2deg); scroll-margin-top: 24px; }
.result::before { content: ""; position: absolute; z-index: 1; width: 114px; height: 28px; background: #bce1f1cc; left: calc(50% - 57px); top: -17px; transform: rotate(-5deg); clip-path: polygon(2% 0, 97% 4%, 100% 92%, 2% 100%, 0 50%); }
.ticket-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #c4c3ab; }
.ticket-heading .eyebrow { font-size: 10px; margin: 0; letter-spacing: 0; }
.ticket-for { font-family: Georgia, serif; font-size: 11px; letter-spacing: 0; }
.ticket-title { display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 24px; font-weight: 600; letter-spacing: 0; margin: 26px 0 0; }
.ticket-title > span { color: var(--tomato); font-size: 27px; }
#result-content { min-height: 295px; padding: 6px 0 22px; }
.result-symbol { display: grid; place-items: center; width: 83px; height: 90px; margin: 24px auto 20px; background: var(--yellow); color: var(--ink); font: italic 70px/1 Georgia, serif; border: 1.6px solid var(--ink); border-radius: 47% 45% 42% 48%; transform: rotate(-8deg); box-shadow: 3px 3px 0 #2c393420; }
.result h2 { font-size: 29px; font-weight: 600; line-height: 1.55; margin: 12px auto 16px; max-width: 330px; overflow-wrap: anywhere; }
.result #result-content p { font-size: 13px; color: #657063; margin: 14px 0 0; }
.is-drawn .result-symbol { width: 63px; height: 65px; margin-top: 17px; margin-bottom: 12px; font-size: 51px; background: var(--sky); }
.is-confirmed { background: #f0f4df; }
.is-confirmed .ticket-title > span { color: #407649; }
.is-confirmed .dark { background: #46674c; box-shadow: none; border-style: dashed; }
#result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 0 24px; }
#result-actions button { font-size: 13px; min-width: 110px; }
.badge { display: inline-block; margin: 4px 3px; padding: 4px 9px; background: #fffdf5; border: 1px solid #cccbaf; border-radius: 4px 7px 5px 3px; font-size: 12px; }
.result-foot { position: relative; margin: 0 -30px; padding: 21px 24px 17px; border-top: 1.5px dashed #a5ac92; color: var(--muted); font-size: 12px; }
.result-foot::before, .result-foot::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; background: #f8f5ed; border: 1px solid var(--ink); border-radius: 50%; }
.result-foot::before { left: -9px; clip-path: inset(0 0 0 50%); }
.result-foot::after { right: -9px; clip-path: inset(0 50% 0 0); }
.result-foot > span:first-child { color: var(--tomato); margin-right: 3px; font-size: 17px; }
.ticket-code { display: block; font-family: monospace; font-size: 10px; letter-spacing: 0; margin-top: 9px; color: #7b806d; }
.stage-foot { font-size: 12px; text-align: center; margin: 28px 0 0; color: var(--muted); }
.stage-foot span { color: var(--tomato); margin-right: 4px; font-size: 20px; vertical-align: middle; }
/* 彩色便签；装饰均为 CSS，没有外部图片或字体请求。 */
.collection { padding: 60px 0 48px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.collection .eyebrow { color: var(--muted); font-size: 10px; margin-bottom: 9px; }
.collection h2 { font-size: 25px; }
.collection .step { background: var(--sky); }
#collection-title { scroll-margin-top: 22px; }
#total { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 6px; white-space: nowrap; }
#add { font-size: 13px; transform: rotate(-2deg); white-space: nowrap; }
.collection-hint { margin: 14px 0 0; }
.collection-hint > span { margin-left: 8px; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 33px; }
.activity { --note: #fff0ad; position: relative; min-width: 0; display: flex; flex-direction: column; padding: 27px 23px 18px; background: var(--note); border: 1px solid #5e685a; border-radius: 3px 7px 4px 8px; box-shadow: 3px 4px 0 #34413720; transform: rotate(-.6deg); }
.activity:nth-child(3n + 2) { --note: #d6eaf1; transform: rotate(.8deg); }
.activity:nth-child(3n) { --note: #f7dcd0; transform: rotate(-.3deg); }
.activity:nth-child(6n + 4) { --note: #e4edce; transform: rotate(.6deg); }
.activity:nth-child(6n + 5) { --note: #f4e5ce; transform: rotate(-.7deg); }
.activity:nth-child(6n) { --note: #e5e0ed; transform: rotate(.5deg); }
.activity::before { content: ""; position: absolute; width: 64px; height: 20px; top: -9px; left: calc(50% - 32px); background: #fffdf6aa; border-left: 1px dashed #9d9c8550; border-right: 1px dashed #9d9c8550; transform: rotate(-5deg); }
.note-number { font: 10px/1.5 monospace; letter-spacing: 0; color: #637064; margin-bottom: 12px; }
.activity h3 { font-size: 18px; font-weight: 600; line-height: 1.6; margin: 0 0 13px; overflow-wrap: anywhere; }
.activity p { margin: 3px 0; font-size: 12px; color: #505d52; }
.activity .is-missing { color: #756149; }
.activity .tag { margin-top: 11px; font-size: 11px; color: #405a4b; }
.card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.text-button { font-size: 12px; padding: 7px 14px; background: #fffdf580; border-color: #687368; border-radius: 5px 3px 7px 4px; min-width: 64px; }
.delete-button { color: #9e3528; border-color: #b1705c; margin-left: auto; background: #fffdf530; }
.card-actions .text-button:first-child::before { content: "↗"; margin-right: 6px; }
#notice { color: var(--blue); font-size: 13px; margin: 12px 0; overflow-wrap: anywhere; }
#notice:empty { display: none; }
.warning { color: #754719; background: #fff0c9; border: 1px solid #c69b5c; border-radius: 5px; padding: 11px 13px; font-size: 13px; overflow-wrap: anywhere; }
.undo-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 10px 14px; border: 1px dashed var(--blue); border-radius: var(--hand-border); background: #e4eff1; font-size: 13px; }
#undo-description { flex: 1 1 220px; overflow-wrap: anywhere; }
#undo { background: var(--paper); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 30px; border-top: 1px solid #b8bcae; font-size: 12px; color: var(--muted); }
.footer-heart { margin: 0 7px; color: var(--tomato); font-size: 19px; vertical-align: middle; }
.footer-edition { font-family: monospace; font-size: 10px; letter-spacing: 0; }
/* 新增和编辑共用表单。 */
dialog { padding: 28px; width: min(540px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--hand-border); box-shadow: 7px 8px 0 #182c3155; }
dialog[open] { position: fixed; top: 84px; left: 50%; z-index: 10; margin: 0; max-height: calc(100dvh - 112px); transform: translateX(-50%); }
dialog::backdrop { background: #273d365e; backdrop-filter: blur(3px); }
dialog .eyebrow { color: var(--blue); font-size: 10px; }
dialog .section-title { margin-bottom: 22px; }
dialog h2 { font-size: 23px; }
.close-button { flex-shrink: 0; min-width: 44px; padding: 0; background: #f3ecd9; font-size: 26px; }
form > label { display: block; margin-bottom: 18px; }
input:not([type="range"]):not([type="radio"]):not([type="checkbox"]) { display: block; width: 100%; min-width: 0; margin: 7px 0 4px; padding: 11px 12px; font-size: 16px; border: 1px solid #849080; border-radius: 4px 7px 3px 6px; background: #fffefb; color: var(--ink); }
input::placeholder { color: #8a8e82; font-size: 12px; }
dialog form > label > .field-hint { display: inline-block; margin-left: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row > label { min-width: 0; }
.mood-choices { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-actions { display: flex; gap: 13px; margin-top: 24px; padding-bottom: 4px; }
.dialog-actions .primary { flex: 1; width: auto; }
@media (hover: hover) {
  button:not(:disabled):not([aria-pressed]):hover { filter: brightness(.97); }
  .primary:not(:disabled):hover, .secondary:not(:disabled):hover { box-shadow: 1px 1px 0 var(--ink); translate: 1px 1px; }
  .range-ticks button:hover { background: #e4ebdf; color: var(--ink); }
  .choices label:hover span, .unlimited-option:hover span { border-color: var(--ink); }
  .collection-link:hover { color: var(--tomato); }
}
button:not(:disabled):active { translate: 1px 1px; }
@media (min-width: 1400px) { main { max-width: 1264px; } }
@media (max-width: 1100px) {
  main { padding: 0 28px; }
  .workspace { gap: 30px; grid-template-columns: 1.15fr 1fr; }
  .panel { padding: 24px 22px; }
  .hand-note { display: none; }
  .result { padding: 26px 23px 0; }
  .result-foot { margin-inline: -23px; }
  .intro-doodle { margin-right: 0; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; gap: 26px; }
  .result-stage { position: static; max-width: 540px; width: 100%; margin: auto; padding-inline: 9px; }
  .panel { padding: 27px 30px; }
  .hand-note { display: block; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-doodle { width: 140px; }
  .intro-doodle svg { width: 130px; }
  .intro-doodle > span { font-size: 10px; }
  .section-tabs { gap: 0; }
  .section-tab { padding-inline: 12px; }
  .result h2 { font-size: 27px; }
}
@media (max-width: 600px) {
  main { padding: 0 20px; }
  header { min-height: 77px; height: auto; gap: 8px 12px; flex-wrap: wrap; padding-block: 8px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand-mark { width: 31px; height: 32px; font-size: 26px; }
  .language-picker { order: 2; margin-left: auto; gap: 5px; font-size: 11px; }
  #language-select { max-width: 116px; min-height: 38px; font-size: 12px; }
  .section-tabs { order: 3; width: 100%; justify-content: flex-end; margin-left: 0; min-height: 40px; }
  .section-tab { padding-inline: 9px; }
  .collection-link { font-size: 11px; }
  .collection-link span { margin-left: 3px; font-size: 16px; }
  .intro { padding: 29px 0 31px; }
  .intro-copy { width: 100%; min-width: 0; }
  h1 { font-size: 27px; letter-spacing: 0; white-space: nowrap; }
  html[lang="ja"] h1 { white-space: normal; }
  html[lang="en"] h1 { white-space: normal; }
  .intro .eyebrow { font-size: 11px; }
  .intro-copy > p:last-child { font-size: 12px; max-width: 280px; line-height: 1.9; }
  .intro-doodle { display: none; }
  .panel { padding: 25px 17px 23px; }
  .panel-heading { padding-bottom: 20px; }
  .panel h2 { font-size: 18px; }
  .hand-note { display: none; }
  .field-heading { gap: 7px; }
  .field-heading > label:first-child { font-size: 13px; }
  .field-heading output { font-size: 13px; }
  .range-ticks button { font-size: 10px; }
  .unlimited-option span { min-width: 44px; }
  .choices { gap: 8px; }
  #candidate-count { font-size: 11px; }
  .stage-note { font-size: 11px; }
  .result-stage { padding-inline: 5px; }
  .result { padding: 25px 20px 0; }
  .result-foot { margin-inline: -20px; padding-inline: 16px; }
  .ticket-heading .eyebrow { font-size: 9px; }
  .ticket-for { font-size: 10px; }
  .result h2 { font-size: 25px; }
  .stage-foot { font-size: 11px; }
  .collection { padding: 40px 0 33px; }
  .section-title { flex-wrap: wrap; gap: 18px; }
  .collection .section-title { align-items: flex-start; }
  .collection h2 { font-size: 21px; }
  #add { width: 100%; transform: none; margin-top: 0; }
  .collection-hint { margin-top: 16px; }
  .collection-hint > span { display: block; margin: 3px 0 0; }
  .activity-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 27px; padding-inline: 3px; }
  .activity { padding: 24px 22px 18px; }
  .activity h3 { font-size: 19px; }
  .activity p { font-size: 13px; }
  .activity .tag { font-size: 12px; }
  .card-actions { padding-top: 16px; }
  .text-button { min-width: 76px; font-size: 13px; }
  footer { flex-direction: column; gap: 7px; text-align: center; }
  dialog { padding: 23px 18px; }
  dialog .section-title { flex-wrap: nowrap; gap: 6px; }
  dialog h2 { font-size: 21px; }
}
@media (max-width: 359px) {
  main { padding-inline: 12px; }
  .panel { padding-inline: 13px; }
  .field-heading { flex-wrap: wrap; }
  .field-heading > label:first-child { flex-basis: 45%; }
  .field-heading .field-hint { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .collection h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s, box-shadow .15s, translate .15s; }
  .is-revealing { animation: ticket-reveal .34s ease-out both; }
  @keyframes ticket-reveal {
    from { opacity: 0; transform: translateY(9px) rotate(-1.5deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
  }
}
