/* Wichteln – Logik in web/src/wichteln/ */
.wi-main { max-width: 680px; }
#wi { margin-bottom: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.wi-h { margin: 0 0 8px; font-size: 1.15rem; overflow-wrap: anywhere; }
.wi-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.wi-mid { justify-content: center; }
.wi-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 8px; }
.wi-name { display: flex; gap: 4px; align-items: center; }
.wi-name .h-input { min-width: 0; }
.wi-more { margin: 12px 0; }
.wi-more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.wi-more .h-select { flex: 1 1 130px; width: auto; min-width: 0; }
.wi-pair { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; }
.wi-err { color: var(--danger, #b91c1c); min-height: 1.2em; margin: 6px 0; }
.wi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.wi-center .wi-chips { justify-content: center; }
.wi-chip { padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: .9rem; }
.wi-list { display: flex; flex-direction: column; gap: 4px; }
.wi-round, .wi-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.wi-round small { color: var(--muted); flex: none; }
.wi-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wi-pick .h-btn { overflow-wrap: anywhere; }
.wi-qr { display: grid; place-items: center; margin-top: 12px; }
.wi-qr[hidden] { display: none; }
.wi-center { text-align: center; }
.wi-eyebrow { margin: 0; color: var(--muted); font-weight: 600; }
.wi-name-big { margin: 2px 0 8px; font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.wi-wish { background: var(--bg); border-radius: var(--r-l); padding: 10px 12px; overflow-wrap: anywhere; }
.wi-gift { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 18px; animation: wiWobble 2.2s ease-in-out infinite; }
.wi-gift.open { animation: wiOpen .6s ease-in forwards; }
@keyframes wiWobble { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
@keyframes wiOpen { to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wi-gift, .wi-gift.open { animation: none; } }
.wi-note { border-left: 4px solid #16a34a; }
