.dihkus-he-santa {
    --santa-width: clamp(94px, 11vw, 175px);
    position: fixed;
    left: clamp(8px, 5.5vw, 100px);
    bottom: max(7px, env(safe-area-inset-bottom));
    width: var(--santa-width);
    aspect-ratio: 144 / 124;
    z-index: 1010;
    pointer-events: none;
}

.dihkus-he-santa-character {
    position: absolute;
    inset: 0;
    background: url("santa-walk.svg?ver=1.0.39") center / contain no-repeat;
}

.dihkus-he-santa[data-scene="greet"] .dihkus-he-santa-character {
    animation: dihkus-he-santa-peek 1.2s linear both;
}

@keyframes dihkus-he-santa-peek {
    0% { opacity: 0; transform: translate(-43%, 6%) rotate(-7deg); }
    22% { opacity: 1; transform: translate(-31%, 0) rotate(-3deg); }
    43% { transform: translate(-25%, 4%) rotate(1deg); }
    66% { transform: translate(-12%, -1%) rotate(-2deg); }
    88% { transform: translate(-3%, 2%) rotate(2deg); }
    100% { transform: none; }
}
.dihkus-he-santa-message {
    position: absolute;
    bottom: 55%;
    left: 86%;
    width: clamp(150px, 24vw, 235px);
    box-sizing: border-box;
    padding: 9px 12px;
    color: #522e2a;
    background: #fffaf2;
    border: 1px solid #e9c98a;
    border-left: 4px solid #a8443c;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(70, 41, 35, .16);
    pointer-events: auto;
}

.dihkus-he-santa-message strong {
    display: block;
    color: #a03932;
    font-size: 1rem;
}

.dihkus-he-santa-copy {
    margin: 4px 0 0;
    font-size: .875rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}


@media (prefers-reduced-motion: reduce) {
    .dihkus-he-santa[data-scene] .dihkus-he-santa-character {

        animation: none;
    }
}
.dihkus-he-santa[data-scene="leave"] .dihkus-he-santa-character {
    animation: dihkus-he-santa-return .85s ease-in-out both;
}

@keyframes dihkus-he-santa-return {
    0% { opacity: 1; transform: none; }
    30% { transform: translate(-12%, -4%) rotate(2deg); }
    56% { opacity: 1; transform: translate(-25%, 2%) rotate(-2deg); }
    78% { transform: translate(-35%, 0) rotate(-4deg); }
    100% { opacity: 0; transform: translate(-48%, 13%) rotate(-7deg); }
}

@media (prefers-reduced-motion: reduce) {
    .dihkus-he-santa[data-scene="leave"] .dihkus-he-santa-character {
        animation: none;
    }
}
.dihkus-he-santa[data-variant="sleigh"] {
    left: clamp(14px, 6vw, 115px);
    width: clamp(140px, 17.5vw, 280px);
    aspect-ratio: 300 / 125;
}

.dihkus-he-santa[data-variant="sleigh"] .dihkus-he-santa-character {
    background-image: url("santa-sleigh.svg?ver=1.0.52");
}

.dihkus-he-santa[data-variant="sleigh"] .dihkus-he-santa-message {
    left: 34%;
    bottom: 78%;
}

@media (prefers-reduced-motion: no-preference) {
    .dihkus-he-santa[data-variant="sleigh"][data-scene="greet"] .dihkus-he-santa-character {
        animation: dihkus-he-sleigh-arrive 1.3s ease-out both;
    }

    .dihkus-he-santa[data-variant="sleigh"][data-scene="leave"] .dihkus-he-santa-character {
        animation: dihkus-he-sleigh-return 1.05s ease-in-out both;
    }
}

@keyframes dihkus-he-sleigh-arrive {
    0% { opacity: 0; transform: translateX(-62%); }
    30% { opacity: 1; transform: translate(-32%, -5%) rotate(-3deg); }
    56% { transform: translate(-15%, 1%) rotate(2deg); }
    78% { transform: translate(-3%, -3%); }
    100% { transform: none; }
}

@keyframes dihkus-he-sleigh-return {
    0% { opacity: 1; transform: none; }
    20% { transform: scaleX(-1); }
    48% { transform: translate(-20%, -5%) scaleX(-1) rotate(3deg); }
    72% { opacity: 1; transform: translate(-43%, 1%) scaleX(-1); }
    100% { opacity: 0; transform: translate(-67%, 3%) scaleX(-1); }
}

@media (max-width: 600px) {
    .dihkus-he-santa {
        --santa-width: 76px;
        left: 8px;
    }

    .dihkus-he-santa[data-variant="sleigh"] {
        left: 12px;
        width: 110px;
    }

    .dihkus-he-santa-message {
        width: clamp(125px, 39vw, 175px);
        padding: 6px 8px;
        border-radius: 7px;
        text-align: left;
    }

    .dihkus-he-santa-message strong {
        font-size: .75rem;
        line-height: 1.2;
    }

    .dihkus-he-santa-copy {
        margin-top: 3px;
        font-size: .6875rem;
        line-height: 1.3;
        text-align: left;
    }
}