/* Footer final whistle — Navy / Royal Blue / Cyan */
.footer-final-whistle {
    --footer-final-navy: #020817;
    --footer-final-blue: #1457d9;
    --footer-final-cyan: #55d9ff;
    --footer-final-ink: #f7fbff;
    --footer-final-muted: #a9bdd2;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(104, 210, 255, 0.22);
    background:
        radial-gradient(circle at 8% 0%, rgba(32, 113, 255, 0.23), transparent 35%),
        radial-gradient(circle at 88% 130%, rgba(34, 211, 238, 0.16), transparent 38%),
        linear-gradient(116deg, #071632 0%, var(--footer-final-navy) 54%, #06122a 100%);
    color: var(--footer-final-ink);
}

.footer-final-whistle::before,
.footer-final-whistle::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.footer-final-whistle::before {
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(110, 207, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 207, 255, 0.09) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, #000, transparent 46%, #000);
}

.footer-final-whistle::after {
    width: 260px;
    height: 260px;
    right: -118px;
    top: -96px;
    border: 1px solid rgba(85, 217, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(20, 87, 217, 0.18);
}

.footer-final-pitch {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.footer-final-pitch__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(transparent, rgba(85, 217, 255, 0.15), transparent);
}

.footer-final-pitch__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 118px;
    aspect-ratio: 1;
    border: 1px solid rgba(85, 217, 255, 0.12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.footer-final-deck {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 20px;
}

.footer-final-identity {
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    padding: 12px 18px 12px 12px;
    border: 1px solid rgba(138, 213, 255, 0.16);
    border-radius: 18px;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    box-shadow:
        0 16px 42px rgba(0, 4, 18, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.footer-fulltime-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(85, 217, 255, 0.2);
    background: rgba(5, 20, 49, 0.72);
    color: var(--footer-final-cyan);
    white-space: nowrap;
}

.footer-fulltime-mark svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.footer-fulltime-mark span {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.footer-season-stamp {
    position: relative;
    display: grid;
    align-content: center;
    min-width: 94px;
    min-height: 66px;
    padding: 9px 14px 8px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #246cf0, #0d42af);
    box-shadow: 0 10px 28px rgba(20, 87, 217, 0.34), inset 0 1px rgba(255, 255, 255, 0.28);
}

.footer-season-stamp::after {
    content: "";
    position: absolute;
    inset: auto -12px -28px auto;
    width: 64px;
    height: 64px;
    border: 9px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.footer-season-stamp span,
.footer-season-stamp strong {
    position: relative;
    z-index: 1;
}

.footer-season-stamp span {
    color: #dff7ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.footer-season-stamp strong {
    color: #fff;
    font-family: var(--font-display, inherit);
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 0.96;
    letter-spacing: 0.02em;
}

.footer-rights-block {
    min-width: 0;
    padding-left: clamp(2px, 1vw, 14px);
    border-left: 1px solid rgba(160, 213, 255, 0.17);
}

.footer-rights-label {
    display: block;
    margin-bottom: 5px;
    color: #83ddff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.footer-rights-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 9px;
    margin: 0;
    line-height: 1.4;
}

.footer-partner-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: #fff;
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 850;
    letter-spacing: -0.01em;
    text-decoration: none;
    touch-action: manipulation;
    transition: color 220ms ease, text-shadow 220ms ease;
}

.footer-partner-link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--footer-final-cyan);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-partner-link:hover {
    color: #bcefff;
    text-shadow: 0 0 18px rgba(85, 217, 255, 0.35);
}

.footer-partner-link:hover svg {
    transform: translate(2px, -2px);
}

.footer-partner-link:active {
    color: #83ddff;
    text-shadow: none;
}

.footer-rights-note {
    color: var(--footer-final-muted);
    font-size: 12px;
    font-weight: 600;
}

.footer-return-top {
    position: relative;
    min-width: 128px;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px 15px 19px;
    overflow: hidden;
    border: 1px solid rgba(106, 218, 255, 0.43);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(31, 104, 232, 0.92), rgba(8, 53, 150, 0.96));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 15px 34px rgba(0, 52, 164, 0.34), inset 0 1px rgba(255, 255, 255, 0.27);
    touch-action: manipulation;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.footer-return-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.17) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 360ms ease-out;
}

.footer-return-top:hover {
    transform: translateY(-3px);
    border-color: #9ae8ff;
    box-shadow: 0 20px 42px rgba(0, 78, 210, 0.42), 0 0 24px rgba(85, 217, 255, 0.16);
}

.footer-return-top:hover::before {
    transform: translateX(120%);
}

.footer-return-top__copy,
.footer-return-top__icon {
    position: relative;
    z-index: 1;
}

.footer-return-top__copy {
    display: grid;
    gap: 2px;
}

.footer-return-top__copy small {
    color: #c8f3ff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.footer-return-top__copy strong {
    font-family: var(--font-display, inherit);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.07em;
}

.footer-return-top__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(4, 18, 52, 0.28);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms ease;
}

.footer-return-top__icon svg {
    width: 20px;
    height: 20px;
}

.footer-return-top:hover .footer-return-top__icon {
    transform: translateY(-3px);
    background: rgba(3, 15, 46, 0.5);
}

.footer-return-top:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 9px 22px rgba(0, 52, 164, 0.3), inset 0 1px rgba(255, 255, 255, 0.22);
}

.footer-partner-link:focus-visible,
.footer-return-top:focus-visible {
    outline: 3px solid #f8fdff;
    outline-offset: 4px;
}

@media (max-width: 820px) {
    .footer-final-identity {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .footer-fulltime-mark {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .footer-final-whistle {
        padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    }

    body.home-page .footer-final-whistle {
        padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    }

    .footer-final-deck {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .footer-final-identity {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
    }

    .footer-fulltime-mark {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    .footer-season-stamp {
        min-width: 0;
        width: 84px;
        min-height: 76px;
        padding-inline: 10px;
    }

    .footer-rights-block {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 13px;
    }

    .footer-rights-copy {
        align-items: flex-start;
        gap: 0;
    }

    .footer-partner-link {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
    }

    .footer-rights-note {
        display: block;
        width: 100%;
        font-size: 11px;
    }

    .footer-return-top {
        min-width: 0;
        min-height: 58px;
        padding: 8px 10px 8px 17px;
        border-radius: 16px;
    }

    .footer-return-top__copy {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .footer-return-top__copy small {
        font-size: 9px;
    }

    .footer-return-top__icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 374px) {
    .footer-final-identity {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 9px;
    }

    .footer-season-stamp {
        width: 76px;
    }

    .footer-rights-label {
        letter-spacing: 0.1em;
    }

    .footer-partner-link {
        font-size: 14px;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .footer-final-whistle {
        padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .footer-final-deck {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .footer-return-top {
        min-height: 74px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-partner-link,
    .footer-partner-link svg,
    .footer-return-top,
    .footer-return-top::before,
    .footer-return-top__icon {
        transition: none;
    }
}

/* Footer copyright — minimal professional variant */
.footer-minimal-bar {
    --footer-minimal-cyan: #68ddf5;
    --footer-minimal-text: #f7fbff;
    --footer-minimal-muted: #9eb1c7;
    position: relative;
    isolation: isolate;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(104, 221, 245, 0.2);
    background: linear-gradient(100deg, #061631 0%, #020817 56%, #071a38 100%);
    color: var(--footer-minimal-text);
}

.footer-minimal-bar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: min(180px, 34vw);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--footer-minimal-cyan), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

.footer-minimal-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-minimal-copy {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--footer-minimal-muted);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.5;
}

.footer-minimal-copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.footer-minimal-copy a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #c5eff9;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-minimal-copy a:hover {
    color: #fff;
}

.footer-minimal-separator {
    color: rgba(255, 255, 255, 0.32);
    user-select: none;
}

.footer-minimal-top {
    min-width: 78px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 15px;
    border: 1px solid rgba(104, 221, 245, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-minimal-top svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    color: var(--footer-minimal-cyan);
}

.footer-minimal-top:hover {
    border-color: rgba(104, 221, 245, 0.72);
    background: rgba(34, 121, 224, 0.22);
    transform: translateY(-2px);
}

.footer-minimal-top:active {
    transform: translateY(0) scale(0.98);
}

.footer-minimal-copy a:focus-visible,
.footer-minimal-top:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    body.home-page .footer-minimal-bar {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .footer-minimal-inner {
        min-height: 58px;
        align-items: center;
        gap: 12px;
    }

    .footer-minimal-copy {
        gap: 4px 6px;
        font-size: 11px;
    }

    .footer-minimal-copy strong,
    .footer-minimal-copy a {
        font-size: 12px;
    }

    .footer-minimal-top {
        min-width: 72px;
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-minimal-copy a,
    .footer-minimal-top {
        transition: none;
    }
}
