body { min-height: 100vh; display: flex; flex-direction: column; background: var(--color-base-200); }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
.page { width: 100%; max-width: 40rem; margin: 0 auto; padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.site-header { max-width: 40rem; margin: 0 auto; width: 100%; justify-content: space-between; }
.brand { font-size: 1.25rem; font-weight: 800; }
.site-footer { padding: 1.5rem 1rem; text-align: center; font-size: .8rem; color: color-mix(in oklab, var(--color-base-content) 60%, transparent); }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.note { font-size: .875rem; color: color-mix(in oklab, var(--color-base-content) 65%, transparent); }
.card { background: var(--color-base-100); }
.fieldset .input, .fieldset .btn, .link-field { width: 100%; }

.sticker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 36rem) { .sticker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sticker-grid img, .sticker-image, .sticker-placeholder { width: 100%; aspect-ratio: 1; object-fit: contain; }
.sticker-image, .sticker-placeholder { display: grid; place-items: center; background: var(--color-base-200); }
.sticker-placeholder { border-radius: var(--radius-box); font-size: .8rem; }
.sticker .card-body { padding: .75rem; gap: .5rem; }
.sticker-caption { font-weight: 600; }

.tab-content { padding-top: .75rem; }
.pick { position: relative; display: block; border: 2px solid transparent; border-radius: var(--radius-box); background: var(--color-base-100); padding: .25rem; text-align: center; font-size: .8rem; cursor: pointer; }
.pick:has(:checked) { border-color: var(--color-primary); }
.pick input { position: absolute; top: .4rem; left: .4rem; }
/* "已选 n/4" without script: count the checked boxes of this theme. */
.picks { counter-reset: picked; }
.picks input:checked { counter-increment: picked; }
.picked-count::after { content: counter(picked); }

.photo-preview { max-width: 12rem; border-radius: var(--radius-box); }
.dialog-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.gift { text-align: center; align-items: center; }
.gift-message { font-size: 1.1rem; }
