/* Świąteczna i noworoczna oprawa strony zapisów.
   Działa do CONFIG.self.countdownTo. Wyłączysz ją wcześniej: CONFIG.swieta: false.
   „Dla kogoś” wygląda świątecznie, „Dla siebie” noworocznie. */

/* girlanda z guzików pod nagłówkiem */
[data-swieta] #glowna::before { content: ""; display: block; height: 56px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='56'><path d='M0 5Q60 25 120 5Q180 25 240 5' fill='none' stroke='%23B0762C' stroke-width='1.5'/><path d='M60 15v9M180 15v7M120 5v9' stroke='%23B0762C'/><circle cx='60' cy='36' r='13' fill='%23B13A63'/><circle cx='60' cy='36' r='9' fill='none' stroke='%23FFF7F2' opacity='.5'/><path d='M56 33h.1M64 33h.1M56 39h.1M64 39h.1' stroke='%23FFF7F2' stroke-width='3.5' stroke-linecap='round'/><path d='M180 20l11 14h-5l9 14h-30l9-14h-5Z' fill='%23245843'/><path d='M180 48v6' stroke='%238F6A5C' stroke-width='4'/><circle cx='180' cy='20' r='3.5' fill='%23D9964A'/><circle cx='120' cy='21' r='8' fill='%23D9964A'/><path d='M117 21h.1M123 21h.1' stroke='%236E4416' stroke-width='3' stroke-linecap='round'/><circle cx='0' cy='13' r='6' fill='%236F8F7C'/><circle cx='240' cy='13' r='6' fill='%236F8F7C'/></svg>") repeat-x center top; }
[data-swieta][data-mode="siebie"] #glowna::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='56'><path d='M0 5Q60 25 120 5Q180 25 240 5' fill='none' stroke='%23F2C98A' stroke-width='1.5'/><path d='M60 15v9M180 15v10M120 5v10' stroke='%23F2C98A'/><path d='M60 23l3.800 8 8.800 1-6.500 6 1.700 8.700-7.800-4.400-7.800 4.400 1.700-8.700-6.500-6 8.800-1Z' fill='%23F2C98A'/><circle cx='180' cy='36' r='11' fill='none' stroke='%23FFF3EE' stroke-width='3'/><path d='M176 36h.1M184 36h.1' stroke='%23FFF3EE' stroke-width='3.5' stroke-linecap='round'/><path d='M120 15Q120 26 131 26Q120 26 120 37Q120 26 109 26Q120 26 120 15Z' fill='%23FFF3EE'/><circle cx='0' cy='13' r='5' fill='%23E58AA8'/><circle cx='240' cy='13' r='5' fill='%23E58AA8'/></svg>"); }

/* wstążka w paski przy nagłówku */
[data-swieta] .pasek::after { content: ""; display: block; height: 5px; background: repeating-linear-gradient(135deg, #8E2A4E 0 10px, #FFF7F2 10px 16px, #245843 16px 26px, #FFF7F2 26px 32px); }
[data-swieta][data-mode="siebie"] .pasek::after { height: 2px; background: repeating-linear-gradient(90deg, #F2C98A 0 10px, transparent 10px 16px); }

/* kokarda i iskry na panelach wyboru */
[data-swieta] .wejscie { position: relative; }
[data-swieta] .wejscie::after { content: ""; position: absolute; top: -6px; right: 8px; width: 64px; height: 48px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='48'><path d='M29 22 17 43l8-2 4 6 8-23ZM35 22l12 21-8-2-4 6-8-23Z' fill='%238E2A4E'/><path d='M32 20C22 2 3 5 6 18s19 11 26 4ZM32 20C42 2 61 5 58 18s-19 11-26 4Z' fill='%23B13A63'/><path d='M12 15q7-3 14 4M52 15q-7-3-14 4' fill='none' stroke='%238E2A4E' stroke-width='2'/><circle cx='32' cy='21' r='6.500' fill='%238E2A4E'/></svg>") no-repeat center / contain; pointer-events: none; }
[data-swieta] .wejscie-siebie::after { top: 4px; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='48'><path d='M40 4Q40 22 58 22Q40 22 40 40Q40 22 22 22Q40 22 40 4ZM14 3Q14 12 23 12Q14 12 14 21Q14 12 5 12Q14 12 14 3ZM17 31Q17 37 23 37Q17 37 17 43Q17 37 11 37Q17 37 17 31Z' fill='%23F2C98A'/></svg>"); }
[data-swieta] .wejscie-kogos { border: 2px solid #245843; outline: 2px dashed #D9964A; outline-offset: -8px; }
[data-swieta] .wejscie-etykieta { padding-right: 64px; }

/* odliczanie jako zawieszka z bombką */
[data-swieta] .odliczanie { display: inline-flex; align-items: center; gap: 8px; margin-block: 4px; padding: 6px 14px 6px 10px; border-radius: 99px; background: #245843; color: #FFFFFF; }
[data-swieta] .odliczanie::before { content: ""; flex: none; width: 18px; height: 20px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='20'><circle cx='9' cy='12' r='7' fill='%23F2C98A'/><path d='M6 3h6v3H6Z' fill='%23FFF7F2'/><circle cx='6.500' cy='10' r='2' fill='%23FFF7F2' opacity='.7'/></svg>") no-repeat center; }
[data-swieta] .wejscie-siebie .odliczanie { background: #F2C98A; color: #3A1C32; }
[data-swieta] .wejscie-siebie .odliczanie::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='20'><path d='M9 1Q9 10 18 10Q9 10 9 19Q9 10 0 10Q9 10 9 1Z' fill='%238E2A4E'/></svg>"); }
@media (max-width: 419px) { [data-swieta] .odliczanie { font-size: 13px; gap: 5px; padding-inline: 8px 10px; text-wrap: balance; } }

/* choinki albo gwiazdy nad stopką */
[data-swieta] .stopka { position: relative; margin-top: 56px; }
[data-swieta] .stopka::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='40'><path d='M26 4l11 13h-5l10 15H10l10-15h-5Z' fill='%23245843'/><path d='M26 32v8M80 34v6M124 32v8' stroke='%238F6A5C' stroke-width='4'/><path d='M80 14l8 10h-4l7 11H69l7-11h-4Z' fill='%236F8F7C'/><path d='M124 8l10 12h-5l9 13h-28l9-13h-5Z' fill='%23245843'/><circle cx='26' cy='4' r='3' fill='%23D9964A'/><circle cx='124' cy='8' r='3' fill='%23B13A63'/><path d='M0 39h160' stroke='%23EBD3C9' stroke-width='2' stroke-dasharray='6 5'/></svg>") repeat-x center bottom; }
[data-swieta][data-mode="siebie"] .stopka::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='40'><path d='M20 12Q20 22 30 22Q20 22 20 32Q20 22 10 22Q20 22 20 12ZM74 6Q74 12 80 12Q74 12 74 18Q74 12 68 12Q74 12 74 6ZM128 18Q128 26 136 26Q128 26 128 34Q128 26 120 26Q128 26 128 18Z' fill='%23F2C98A'/><path d='M50 30h.1M100 20h.1M150 8h.1' stroke='%23FFF3EE' stroke-width='3' stroke-linecap='round'/></svg>"); }

/* voucher jak paczka z kokardą, także na wydruku */
[data-swieta] .voucher { border: 3px solid #245843; outline: 2px dashed #D9964A; outline-offset: -11px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
[data-swieta] .voucher::before { content: ""; display: block; width: 80px; height: 60px; margin: -12px auto 8px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='48'><path d='M29 22 17 43l8-2 4 6 8-23ZM35 22l12 21-8-2-4 6-8-23Z' fill='%238E2A4E'/><path d='M32 20C22 2 3 5 6 18s19 11 26 4ZM32 20C42 2 61 5 58 18s-19 11-26 4Z' fill='%23B13A63'/><path d='M12 15q7-3 14 4M52 15q-7-3-14 4' fill='none' stroke='%238E2A4E' stroke-width='2'/><circle cx='32' cy='21' r='6.500' fill='%238E2A4E'/></svg>") no-repeat center / contain; }

/* okienko z newsletterem */
[data-swieta] .okno-karta { border-top: 0; background-image: repeating-linear-gradient(135deg, #8E2A4E 0 10px, #FFF7F2 10px 16px, #245843 16px 26px, #FFF7F2 26px 32px); background-size: 100% 8px; background-repeat: no-repeat; padding-top: 28px; }

/* krótki śnieg po wejściu (5 sekund, bez klikania w płatki) */
[data-swieta] body::after { content: ""; position: fixed; inset: 0; z-index: 25; pointer-events: none; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='300'><path d='M30 24v12M25 27l10 6M25 33l10-6M150 84v12M145 87l10 6M145 93l10-6M70 194v12M65 197l10 6M65 203l10-6M190 244v12M185 247l10 6M185 253l10-6' stroke='%237FA6C4' stroke-width='1.500' stroke-linecap='round'/><path d='M110 40h.1M200 160h.1M20 130h.1M130 220h.1M60 280h.1' stroke='%239DBBD1' stroke-width='6' stroke-linecap='round'/></svg>"); animation: snieg 5s linear forwards; }
[data-swieta][data-mode="siebie"] body::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='300'><path d='M30 23Q30 30 37 30Q30 30 30 37Q30 30 23 30Q30 30 30 23ZM150 81Q150 90 159 90Q150 90 150 99Q150 90 141 90Q150 90 150 81ZM70 194Q70 200 76 200Q70 200 70 206Q70 200 64 200Q70 200 70 194ZM190 243Q190 250 197 250Q190 250 190 257Q190 250 183 250Q190 250 190 243Z' fill='%23F2C98A'/><path d='M110 40h.1M20 130h.1M130 220h.1' stroke='%23E58AA8' stroke-width='5' stroke-linecap='round'/><path d='M200 160h.1M60 280h.1' stroke='%23FFF3EE' stroke-width='4' stroke-linecap='round'/></svg>"); }
@keyframes snieg { 0% { background-position: 0 0; opacity: 0; } 10%, 75% { opacity: .9; } 100% { background-position: 0 300px; opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { [data-swieta] body::after { display: none; } }
@media print { [data-swieta] body::after, [data-swieta] #glowna::before { display: none; } }
