.advent-snow {
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow: hidden;
    pointer-events: none;
}
.advent-flake {
    position: absolute;
    top: -16px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 3px #54736b;
    opacity: var(--opacity);
    animation: advent-snowfall var(--duration) var(--delay) linear infinite;
}
@keyframes advent-snowfall {
    to { transform: translate3d(var(--drift), calc(100vh + 32px), 0); }
}
.advent-dialog {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 52px 36px 36px;
    border: 1px solid #d6bd83;
    border-radius: 20px;
    background: #f9f6ee;
    color: #23483d;
    text-align: center;
    box-shadow: 0 24px 80px #102a2a55;
}
.advent-dialog::backdrop {
    background: #102a2acc;
    backdrop-filter: blur(5px);
}
.advent-dialog .advent-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #23483d;
    font-size: 30px;
    cursor: pointer;
}
.advent-dialog .advent-star {
    margin-bottom: 18px;
    color: #9b742d;
    font-size: 44px;
    line-height: 1;
}
.advent-dialog h2 {
    margin: 0 0 20px;
    color: #23483d;
    font-family: Georgia, serif;
    font-size: clamp(30px, 6vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: normal;
}
.advent-dialog p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.7;
}
.advent-dialog .advent-signature {
    font-size: 14px;
}
.advent-dialog .advent-dismiss {
    padding: 12px 24px;
    border: 1px solid #23483d;
    border-radius: 6px;
    background: #23483d;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.advent-dialog button:focus-visible {
    outline: 3px solid #a87b27;
    outline-offset: 4px;
}
.advent-dialog .advent-close:hover { background: #e9e5d9; }
.advent-dialog .advent-dismiss:hover { background: #315e50; }
html.advent-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .advent-snow { display: none; }
}
@media (max-width: 480px) {
    .advent-dialog { padding: 52px 24px 28px; }
}
