/* Secret Santa Draw (w032) */
/* Keep the main action near the first screen on phones: the storage note is secondary. */
body.kit .kit-local { font-size: .85rem; margin-bottom: .75rem; }
.santa, .santa > *, .santa .kit-card > * { min-width: 0; }
.santa-step { display: grid; gap: .5rem; }
.santa-names-label { color: var(--text); font-size: 1.15rem; font-weight: 800; }
.santa-names-label span { display: block; color: var(--muted); font-size: .95rem; font-weight: 600; }
.santa-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.santa-more { border: 1px solid var(--border); border-radius: .85rem; background: #0c1220; }
.santa-more summary { display: flex; align-items: center; min-height: 48px; padding: .6rem 1rem; cursor: pointer; font-weight: 700; list-style: none; }
.santa-more summary::-webkit-details-marker { display: none; }
.santa-more summary::before { content: '+'; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-inline-end: .6rem; border-radius: 50%; background: var(--card); color: var(--accent); font-weight: 800; }
.santa-more[open] summary::before { content: '−'; }
.santa-more-body { padding: 0 1rem 1rem; display: grid; gap: .75rem; }
.santa-wide { grid-column: 1 / -1; }
.santa-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: .5rem; align-items: end; }
.santa-pair-mark { align-self: center; padding-top: 1.6rem; color: var(--muted); font-size: 1.2rem; }
.santa-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.santa-chips li:not(.kit-note) { display: inline-flex; align-items: center; gap: .25rem; padding-inline-start: .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); overflow-wrap: anywhere; }
.santa-chip-remove { min-width: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 999px; }
.santa-modes label { flex: 1 1 14rem; }
.santa-go { min-height: 52px; padding-inline: 1.75rem; font-size: 1.1rem; }

.santa-warn { margin: 0; padding: .75rem 1rem; border-inline-start: 4px solid #ffd36e; border-radius: .5rem; background: #2a2414; color: var(--text); }
.santa-progress { margin: 0; font-weight: 700; color: var(--accent); }
.santa-people { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.santa-person { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem .75rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: .75rem; background: #0c1220; }
.santa-person[data-sent="true"] { border-color: #2f6b55; }
.santa-who { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.santa-state { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.santa-person[data-sent="true"] .santa-state { color: var(--ok); }
.santa-buttons { display: flex; gap: .4rem; }

.santa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.santa-grid button { width: 100%; min-height: 56px; font-size: 1.05rem; overflow-wrap: anywhere; }
.santa-grid button.santa-seen { color: var(--muted); border-style: dashed; }

.santa-card { display: grid; gap: .75rem; padding: clamp(1.1rem, 5vw, 2rem); border: 1px solid #3c5a52; border-radius: 1rem; background: linear-gradient(160deg, #13231f, #101a2b); text-align: center; justify-items: center; }
.santa-card:focus { outline: none; }
.santa-card .kit-actions { justify-content: center; }
.santa-card #reveal-ask, .santa-card #reveal-result, .santa-card #pass-ask, .santa-card #pass-result { display: grid; gap: .75rem; justify-items: center; width: 100%; }
.santa-event { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.santa-hello { margin: 0; font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 800; overflow-wrap: anywhere; }
.santa-hello:focus { outline: none; }
.santa-label { margin: 0; color: var(--muted); font-size: 1.05rem; }
.santa-name { margin: 0; font-size: clamp(2rem, 11vw, 3.75rem); font-weight: 850; line-height: 1.1; color: #ffd36e; overflow-wrap: anywhere; }
.santa-details { display: grid; gap: .5rem; width: min(100%, 28rem); margin: 0; text-align: start; }
.santa-details div { padding: .6rem .85rem; border-radius: .65rem; background: #0c1220; }
.santa-details dt { color: var(--muted); font-size: .85rem; }
.santa-details dd { margin: .1rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.santa-pop { animation: santa-pop .5s ease-out; }
@keyframes santa-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .santa-pop { animation: none; } }
.santa-reveal { display: grid; gap: 1rem; }
.santa-own { margin: 0; text-align: center; }
.santa-own a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; color: var(--accent); font-weight: 700; }
body.santa-revealing .kit-lead, body.santa-revealing .kit-local { display: none; }

@media (max-width: 560px) {
  .santa-pair { grid-template-columns: minmax(0, 1fr); }
  .santa-pair-mark { display: none; }
  .santa-person { grid-template-columns: minmax(0, 1fr) auto; }
  .santa-buttons { grid-column: 1 / -1; }
  .santa-buttons button { flex: 1 1 0; }
}
.santa-inline-error { margin: 0; color: var(--danger); font-weight: 600; }
