@font-face {
    font-family: "Forum Schneekugel Great Vibes";
    src: url("GreatVibes-Regular.ttf") format("truetype");
    font-display: swap;
}

@property --fok-schneekugel-swirl {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.fok-schneekugel-widget {
    position: fixed;
    right: max(var(--fok-schneekugel-right, 0px), env(safe-area-inset-right, 0px));
    bottom: var(--fok-schneekugel-bottom, 196px);
    z-index: 60;
    width: var(--fok-schneekugel-width, 120px);
    height: var(--fok-schneekugel-height, 158px);
    isolation: isolate;
}

.fok-schneekugel-widget[hidden],
.fok-schneekugel-widget > img[hidden],
.fok-schneekugel__pause[hidden] { display: none; }

.fok-schneekugel {
    position: relative;
    container-type: inline-size;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 9%;
    color: #ffe3a6;
    background: radial-gradient(ellipse at 48% 38%, #285865, #0b3641 51%, #092834 94%);
    box-shadow: 0 4px 14px #06161a80;
    text-decoration: none;
}

.fok-schneekugel:hover, .fok-schneekugel:focus { color: #fff3cd; }
.fok-schneekugel:focus-visible,
.fok-schneekugel__pause:focus-visible {
    outline: 2px solid #fff4d4;
    outline-offset: -3px;
}

.fok-schneekugel::before {
    position: absolute;
    inset: 0;
    border: 1px solid #b48e5c;
    border-radius: inherit;
    opacity: .8;
    z-index: 2;
    pointer-events: none;
    content: "";
}

.fok-schneekugel__edge {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 3;
    padding: max(1px, 1.25%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    background: conic-gradient(from var(--fok-schneekugel-swirl), transparent 279deg,
        #88562700 293deg, #f2ac634c 312deg, #ffda8ca6 335deg, #ffedb5 352deg, #fff9ee 358deg, transparent 360deg);
    pointer-events: none;
}

.fok-schneekugel__globe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 9% 9% 0 0;
    mask-image: linear-gradient(#000 93%, transparent);
}

.fok-schneekugel__globe img,
.fok-schneekugel__globe canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fok-schneekugel__label {
    position: absolute;
    inset: auto 5% 7%;
    display: grid;
    justify-items: center;
    gap: 1px;
    text-shadow: 0 1px 2px #051923;
    font: 400 15.3cqw/1.1 "Forum Schneekugel Great Vibes", Georgia, serif;
    white-space: nowrap;
}

.fok-schneekugel__label small {
    color: #ffe9b6;
    font: 680 8.8cqw/1.15 system-ui, sans-serif;
    letter-spacing: .035em;
}

.fok-schneekugel__glint {
    position: absolute;
    width: 5%;
    aspect-ratio: 1;
    opacity: .55;
    pointer-events: none;
}

.fok-schneekugel__glint::before {
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle, #ffe8b3 2%, #f0aa5e8c 25%, #f4bc6c00 70%);
    content: "";
}

.fok-schneekugel__glint::after {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0 50%, 41% 40%);
    background: #fff4d1;
    content: "";
}

.fok-schneekugel__glint--one { left: 13%; top: 14%; }
.fok-schneekugel__glint--two { right: 10%; top: 23%; width: 4%; }
.fok-schneekugel__glint--three { right: 16%; top: 79%; width: 3.6%; }

.fok-schneekugel__pause {
    position: absolute;
    inset: 4px 4px auto auto;
    z-index: 4;
    width: 25px;
    height: 25px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #c3a46c;
    border-radius: 50%;
    background: #0a2935;
    color: #fff1d2;
    font: 650 12px/1 system-ui, sans-serif;
    letter-spacing: normal;
    opacity: 0;
    pointer-events: none;
}

.fok-schneekugel-widget:hover .fok-schneekugel__pause,
.fok-schneekugel-widget:focus-within .fok-schneekugel__pause,
.fok-schneekugel-widget[data-paused] .fok-schneekugel__pause {
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .fok-schneekugel-widget[data-ready] .fok-schneekugel__edge { animation: fok-schneekugel-edge 4.9s linear infinite; }
    .fok-schneekugel-widget[data-ready] .fok-schneekugel__glint { animation: fok-schneekugel-rise 3.7s ease-in-out infinite; }
    .fok-schneekugel-widget[data-ready] .fok-schneekugel__glint--one { animation-delay: -.8s; }
    .fok-schneekugel-widget[data-ready] .fok-schneekugel__glint--two { animation-delay: -2.4s; }
    .fok-schneekugel-widget[data-ready] .fok-schneekugel__glint--three { animation-delay: -1.63s; }
    .fok-schneekugel-widget[data-paused][data-ready] :is(.fok-schneekugel__edge, .fok-schneekugel__glint) { animation-play-state: paused; }
}

@keyframes fok-schneekugel-edge {
    from { --fok-schneekugel-swirl: -29deg; }
    to { --fok-schneekugel-swirl: 331deg; }
}

@keyframes fok-schneekugel-rise {
    0%, 100% { opacity: .18; scale: .62; }
    43% { opacity: .95; scale: 1.23; }
    70% { opacity: .48; scale: .81; }
}

@media (max-width: 768px) {
    .fok-schneekugel-widget {
        right: auto;
        left: max(12px, env(safe-area-inset-left, 0px));
        bottom: var(--fok-schneekugel-bottom, calc(58px + env(safe-area-inset-bottom, 0px)));
        width: auto;
        height: 48px;
    }
    .fok-schneekugel {
        container-type: normal;
        display: flex;
        align-items: center;
        gap: 4px;
        width: max-content;
        padding: 0 9px 0 2px;
        border-radius: 999px;
    }
    .fok-schneekugel__globe {
        position: relative;
        top: auto;
        left: auto;
        flex: none;
        width: 40px;
        border-radius: 50%;
        mask-image: none;
    }
    .fok-schneekugel__label {
        position: static;
        justify-items: start;
        padding: 0 4px 0 2px;
        gap: 0;
        font-size: 18px;
        line-height: 1.09;
    }
    .fok-schneekugel__label small { font-size: 10px; }
    .fok-schneekugel__edge, .fok-schneekugel__glint, .fok-schneekugel__pause { display: none; }
}

@media (hover: none) and (min-width: 769px) {
    .fok-schneekugel__pause { opacity: 1; pointer-events: auto; }
}

a.floating-button.fok-weihnachtsgutschein {
    border-radius: 9%;
    background: #0b3641;
}

a.floating-button.fok-weihnachtsgutschein:focus-visible {
    outline: 2px solid #fff4d4;
    outline-offset: -3px;
}

.floating-button.fok-weihnachtsgutschein > :not(.fok-weihnachtsgutschein__motiv) { visibility: hidden; }

.floating-button .fok-weihnachtsgutschein__motiv {
    position: absolute;
    inset: 0;
    container-type: inline-size;
    isolation: isolate;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #b48e5c;
    border-radius: inherit;
    color: #ffe3a6;
    background: radial-gradient(ellipse at 48% 38%, #285865, #0b3641 51%, #092834 94%);
    pointer-events: none;
}

.fok-weihnachtsgutschein__film {
    position: absolute;
    inset: 0 0 auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    mask-image: linear-gradient(#000 83%, transparent);
}

.floating-button .fok-weihnachtsgutschein__text {
    position: absolute;
    inset: auto 5% 6.4%;
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 0;
    margin: 0;
    color: #ffe3a6;
    text-shadow: 0 1px 2px #051923;
    font: 400 21cqw/1.12 "Forum Schneekugel Great Vibes", Georgia, serif;
    white-space: nowrap;
}

.floating-button .fok-weihnachtsgutschein__text > span { font: inherit; color: inherit; }

.fok-weihnachtsgutschein__text small {
    color: #ffe9b6;
    font: 680 8.8cqw/1.15 system-ui, sans-serif;
    letter-spacing: .035em;
}

@media (prefers-reduced-motion: no-preference) {
    .fok-weihnachtsgutschein .fok-schneekugel__edge { animation: fok-schneekugel-edge 4.9s linear infinite; }
    .fok-weihnachtsgutschein .fok-schneekugel__glint { animation: fok-schneekugel-rise 3.7s ease-in-out -1.2s infinite; }
    .fok-weihnachtsgutschein[data-fok-voucher-still] :is(.fok-schneekugel__edge, .fok-schneekugel__glint) { animation-play-state: paused; }
}

@media (max-width: 768px) {
    a.floating-button.fok-weihnachtsgutschein {
        border-radius: 0;
    }
    .floating-button .fok-weihnachtsgutschein__motiv {
        container-type: normal;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 2px 17px;
        border-inline: 0;
        border-bottom: 0;
    }
    .fok-weihnachtsgutschein__film {
        position: static;
        width: 40px;
        height: 40px;
        border-radius: 7px;
        mask-image: none;
    }
    .floating-button .fok-weihnachtsgutschein__text {
        position: static;
        display: flex;
        align-items: baseline;
        gap: 6px;
        font-size: 20px;
    }
    .fok-weihnachtsgutschein__text small { font-size: 13px; }
}
