.footer {
    position: relative;
    background: var(--color-dark-brown);
    color: var(--color-text-inverse);
    padding: var(--space-2xl) 5vw var(--space-2xl);
}

.footer-grid,
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    max-width: 22rem;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: var(--space-md);
    touch-action: manipulation;
    user-select: none;
}

.footer-logo-image {
    width: 176px;
    height: auto;
    display: block;
}

.footer-brand p {
    max-width: 19rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-sm);
    line-height: 1.6;
}

.footer-secret-heart {
    display: inline-block;
    color: currentColor;
    font-size: 0.46em;
    line-height: 1;
    position: relative;
    touch-action: manipulation;
    user-select: none;
    vertical-align: baseline;
}

.footer-secret-heart::after {
    content: '';
    inset: -12px;
    position: absolute;
}

.footer-secret-heart-punctuation {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    margin-bottom: var(--space-md);
    color: var(--color-text-inverse);
    font-family: var(--font-sans);
    font-size: var(--font-body-sm);
    font-weight: 600;
    text-transform: none;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: var(--space-xs);
}

.footer-links a,
.footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color var(--duration-base) var(--ease-out-expo),
        opacity var(--duration-base) var(--ease-out-expo);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-warm-peach);
    opacity: 1;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-contact p + p {
    margin-top: var(--space-xs);
}

.footer-contact p span {
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-social a {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-body-sm);
    text-decoration: none;
    transition: background var(--duration-base) var(--ease-out-expo),
        border-color var(--duration-base) var(--ease-out-expo),
        color var(--duration-base) var(--ease-out-expo),
        box-shadow 260ms var(--ease-out-quart),
        transform 260ms var(--ease-out-quart);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-warm-peach);
    color: var(--color-text-inverse);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-dark-brown) 28%, transparent);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-xs);
    line-height: 1.6;
}

.footer-ux-credit {
    --light-x: 28%;
    --light-y: -8%;
    --rim-angle: 120deg;
    --shadow-x: 3px;
    --shadow-y: 14px;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 1950;
    max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    margin: 0;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: radial-gradient(ellipse 72% 125% at 50% 52%,
            rgba(255, 255, 255, 0.52),
            rgba(255, 255, 255, 0.24) 62%,
            rgba(255, 255, 255, 0.06) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    backdrop-filter: blur(26px) saturate(155%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        var(--shadow-x) var(--shadow-y) 34px rgba(18, 9, 22, 0.24);
    color: rgba(20, 18, 23, 0.9);
    font-size: max(14px, var(--font-sm));
    font-weight: 600;
    isolation: isolate;
    line-height: 1.4;
    letter-spacing: 0.01em;
    opacity: 0;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45);
    overflow-wrap: anywhere;
    white-space: normal;
    visibility: hidden;
    transform: translate(-50%, 14px) scale(0.94);
    pointer-events: none;
    transition: opacity 240ms ease,
        transform 360ms var(--ease-out-quart),
        visibility 0s linear 360ms;
}

.footer-ux-credit::before,
.footer-ux-credit::after {
    content: '';
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
}

.footer-ux-credit::before {
    inset: -1px;
    z-index: 0;
    padding: 1.5px;
    background: radial-gradient(circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.98) 0%,
            rgba(133, 230, 255, 0.9) 11%,
            rgba(190, 142, 255, 0.76) 23%,
            rgba(255, 132, 196, 0.64) 34%,
            rgba(255, 215, 118, 0.54) 45%,
            rgba(255, 255, 255, 0) 64%),
        conic-gradient(from var(--rim-angle),
            rgba(125, 228, 255, 0.48),
            rgba(192, 137, 255, 0.42),
            rgba(255, 128, 192, 0.38),
            rgba(255, 219, 122, 0.36),
            rgba(125, 228, 255, 0.48));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.footer-ux-credit::after {
    inset: 1px;
    z-index: 0;
    background: radial-gradient(ellipse 62% 145% at var(--light-x) var(--light-y),
        rgba(255, 255, 255, 0.48),
        rgba(132, 226, 255, 0.14) 28%,
        rgba(192, 139, 255, 0.08) 42%,
        rgba(255, 255, 255, 0) 64%);
    mix-blend-mode: screen;
}

.footer-ux-credit-text {
    position: relative;
    z-index: 1;
}

.footer-ux-credit.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
    will-change: transform, opacity;
}

.footer-walkie-talkie {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: max(5vw, calc((100% - 1200px) / 2));
    z-index: 2;
    width: min(320px, calc(100vw - 40px));
    height: 1px;
    margin: 0;
    pointer-events: none;
    visibility: hidden;
}

.footer-walkie-talkie-bubble {
    position: absolute;
    bottom: 46px;
    left: 99px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 124px);
    padding: 10px 14px;
    border: 1px solid rgba(244, 184, 151, 0.36);
    border-radius: 16px;
    background: rgba(67, 40, 36, 0.94);
    box-shadow: 0 10px 22px rgba(27, 12, 10, 0.28);
    color: rgba(255, 226, 207, 0.96);
    opacity: 0;
    transform: translate(-12px, 6px) scale(0.9);
    transform-origin: left center;
    transition: opacity 160ms ease, transform 180ms var(--ease-out-quart);
}

.footer-walkie-talkie-bubble::before {
    position: absolute;
    top: 50%;
    left: -7px;
    width: 13px;
    height: 13px;
    background: rgba(67, 40, 36, 0.94);
    border-bottom: 1px solid rgba(244, 184, 151, 0.36);
    border-left: 1px solid rgba(244, 184, 151, 0.36);
    content: '';
    transform: translateY(-50%) rotate(45deg);
}

.footer-walkie-talkie p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.footer-walkie-talkie-star {
    display: inline-block;
    margin-left: 4px;
    color: var(--color-warm-peach);
    font-size: 0.72em;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 150ms ease, transform 150ms var(--ease-out-quart);
}

.footer-walkie-talkie-star.is-visible {
    opacity: 1;
    transform: scale(1);
}

.footer-walkie-talkie-image {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 126px;
    height: 126px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(42px) scale(0.84);
    transform-origin: bottom left;
}

.footer-walkie-talkie-signals {
    position: absolute;
    z-index: 1;
    bottom: -7px;
    left: 18px;
    width: 70px;
    height: 70px;
    pointer-events: none;
}

.footer-walkie-talkie-signals span {
    position: absolute;
    inset: 50%;
    border: 1px solid rgba(244, 184, 151, 0.42);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
}

.footer-walkie-talkie-signals span + span {
    animation-delay: 650ms;
}

.footer-walkie-talkie-steam {
    position: absolute;
    z-index: 3;
    bottom: 48px;
    left: 54px;
    display: flex;
    gap: 8px;
    height: 22px;
    pointer-events: none;
}

.footer-walkie-talkie-steam span {
    width: 6px;
    height: 20px;
    border-left: 1.5px solid rgba(255, 226, 207, 0.72);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(5px) scaleY(0.8);
}

.footer-walkie-talkie-wave {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: 13px;
    height: 14px;
}

.footer-walkie-talkie-wave span {
    width: 2px;
    border-radius: 999px;
    background: var(--color-warm-peach);
    transform: scaleY(0.45);
}

.footer-walkie-talkie-wave span:nth-child(1) {
    height: 6px;
}

.footer-walkie-talkie-wave span:nth-child(2) {
    height: 12px;
    animation-delay: 120ms;
}

.footer-walkie-talkie-wave span:nth-child(3) {
    height: 8px;
    animation-delay: 240ms;
}

.footer-walkie-talkie.is-visible {
    visibility: visible;
}

.footer-walkie-talkie.is-closing {
    visibility: visible;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-image {
    animation: footer-bubu-rise 560ms var(--ease-out-quart) both;
}

.footer-walkie-talkie.is-closing .footer-walkie-talkie-image {
    opacity: 0;
    transform: translateY(26px) scale(0.9);
    transition: opacity 160ms ease 120ms, transform 220ms var(--ease-out-quart) 120ms;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-bubble {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transition-delay: 220ms;
    animation: footer-bubu-breathe 1.8s ease-in-out 460ms infinite alternate;
}

.footer-walkie-talkie.is-closing .footer-walkie-talkie-bubble {
    transition-delay: 0s;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-signals span {
    animation: footer-bubu-signal 1.3s ease-out 480ms infinite;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-signals span + span {
    animation-delay: 1.13s;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-signals span:nth-child(3) {
    animation-delay: 1.78s;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-steam span {
    animation: footer-bubu-steam 1.6s ease-in 380ms infinite;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-steam span:nth-child(2) {
    animation-delay: 1.08s;
}

.footer-walkie-talkie.is-visible .footer-walkie-talkie-wave span {
    animation: footer-bubu-wave 700ms ease-in-out 360ms infinite alternate;
}

@keyframes footer-bubu-rise {
    0% {
        opacity: 0;
        transform: translateY(42px) scale(0.84);
    }

    68% {
        opacity: 1;
        transform: translateY(-9px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes footer-bubu-signal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.45);
    }

    35% {
        opacity: 0.72;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes footer-bubu-wave {
    from {
        transform: scaleY(0.45);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes footer-bubu-breathe {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(0, 0) scale(1.02);
    }
}

@keyframes footer-bubu-steam {
    0% {
        opacity: 0;
        transform: translateY(5px) scaleY(0.8);
    }

    35% {
        opacity: 0.72;
    }

    100% {
        opacity: 0;
        transform: translateY(-12px) scaleY(1.1);
    }
}

@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
    .footer-ux-credit::before {
        padding: 0;
        background: none;
        -webkit-mask: none;
        mask: none;
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .footer-ux-credit {
        background: rgba(244, 242, 246, 0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-ux-credit,
    .footer-walkie-talkie {
        transition: none;
    }

    .footer-walkie-talkie-image,
    .footer-walkie-talkie-bubble,
    .footer-walkie-talkie-star,
    .footer-walkie-talkie.is-closing .footer-walkie-talkie-bubble,
    .footer-walkie-talkie.is-closing .footer-walkie-talkie-image,
    .footer-walkie-talkie.is-visible .footer-walkie-talkie-image,
    .footer-walkie-talkie.is-visible .footer-walkie-talkie-signals span,
    .footer-walkie-talkie.is-visible .footer-walkie-talkie-steam span,
    .footer-walkie-talkie.is-visible .footer-walkie-talkie-wave span {
        animation: none;
        transition: none;
    }

    .footer-walkie-talkie.is-visible .footer-walkie-talkie-image {
        opacity: 1;
        transform: none;
    }

    .footer-walkie-talkie.is-closing .footer-walkie-talkie-image {
        opacity: 0;
        transform: none;
    }
}

@media (forced-colors: active) {
    .footer-ux-credit {
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
        text-shadow: none;
    }

    .footer-ux-credit::before,
    .footer-ux-credit::after {
        display: none;
    }
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
}

.footer-policy-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-text-inverse);
    cursor: pointer;
    font-family: inherit;
    font-size: var(--font-xs);
    line-height: 1.4;
    opacity: 0.7;
    transition: opacity var(--duration-base) var(--ease-out-expo),
        color var(--duration-base) var(--ease-out-expo);
}

.footer-policy-toggle:hover,
.footer-policy-toggle:focus-visible {
    opacity: 1;
    color: var(--color-text-inverse);
}

.footer a:focus-visible,
.footer button:focus-visible {
    outline: 3px solid var(--color-warm-peach);
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer-grid > * {
        margin-bottom: var(--space-xl);
    }

    .footer-grid > *:last-child {
        margin-bottom: 0;
    }

    .footer-contact {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-logo-image {
        width: min(160px, 42vw);
    }

    .footer-walkie-talkie {
        left: 20px;
        width: min(280px, calc(100vw - 40px));
    }

    .footer-walkie-talkie-image {
        width: 100px;
        height: 100px;
    }

    .footer-walkie-talkie-bubble {
        bottom: 35px;
        left: 75px;
        max-width: calc(100vw - 102px);
        padding: 8px 11px;
    }

    .footer-walkie-talkie p {
        font-size: var(--font-xs);
    }

    .footer-walkie-talkie-signals {
        left: 10px;
        width: 58px;
        height: 58px;
    }

    .footer-walkie-talkie-steam {
        bottom: 38px;
        left: 43px;
        transform: scale(0.8);
        transform-origin: bottom left;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .footer-logo-image {
        width: min(140px, 38vw);
    }

    .footer-grid,
    .footer-bottom {
        text-align: left;
    }

    .footer-bottom-links {
        width: 100%;
        justify-content: flex-start;
    }
}
