.bfff-hide-theme-footer .site-above-footer-wrap,
.bfff-hide-theme-footer .site-primary-footer-wrap,
.bfff-hide-theme-footer .site-below-footer-wrap,
.bfff-hide-theme-footer .ast-small-footer,
.bfff-hide-theme-footer footer.site-footer:not(.bfff) {
    display: none !important;
}

.bfff,
.bfff * { box-sizing: border-box; }

.bfff {
    --bfff-red: #f21f2f;
    --bfff-hot: #ff3544;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 82px 24px 0;
    color: #fff;
    background:
        radial-gradient(circle at 50% -30%, rgba(242,31,47,.16), transparent 37%),
        linear-gradient(145deg, #070708 0%, #111112 48%, #050506 100%);
    border-top: 1px solid rgba(255,255,255,.08);
    font-family: Inter, Arial, sans-serif;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1);
}

.bfff.bfff--visible { opacity: 1; transform: translateY(0); }

.bfff::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.bfff::after {
    content: "BLACKFLAG";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.025);
    font: 900 clamp(120px, 21vw, 340px)/.65 "Barlow Condensed", Impact, sans-serif;
    letter-spacing: -.055em;
    white-space: nowrap;
    pointer-events: none;
}

.bfff__top-line {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    overflow: hidden;
    background: rgba(255,255,255,.035);
}

.bfff__top-line span {
    display: block;
    width: 24%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bfff-hot), transparent);
    filter: drop-shadow(0 0 7px var(--bfff-red));
    animation: bfff-scan 5.5s linear infinite;
}

.bfff__pulse {
    position: absolute;
    top: 13px;
    left: 0;
    width: 100%;
    height: 47px;
    opacity: .45;
    pointer-events: none;
}

.bfff__pulse svg { width: 100%; height: 100%; overflow: visible; }
.bfff__pulse path { fill: none; vector-effect: non-scaling-stroke; }
.bfff__pulse-base { stroke: rgba(255,255,255,.055); stroke-width: 1; }
.bfff__pulse-live {
    stroke: var(--bfff-red);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-dasharray: 145 1295;
    filter: drop-shadow(0 0 5px var(--bfff-hot));
    animation: bfff-heartbeat 4.2s linear infinite;
}

.bfff__inner {
    width: min(1390px, 100%);
    min-height: 220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.bfff__brand { display: flex; align-items: center; gap: 25px; }

.bfff__logo-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.bfff__logo-link img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: min(300px, 54vw);
    max-height: 112px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 13px 28px rgba(0,0,0,.55));
    transition: transform .35s ease, filter .35s ease;
}

.bfff__logo-link:hover img {
    transform: translateY(-3px) scale(1.015);
    filter: drop-shadow(0 15px 34px rgba(0,0,0,.62)) drop-shadow(0 0 13px rgba(242,31,47,.24));
}

.bfff__logo-glow {
    position: absolute;
    inset: 25% 3%;
    background: rgba(242,31,47,.18);
    filter: blur(35px);
    border-radius: 50%;
}

.bfff__tag {
    max-width: 100px;
    padding-left: 17px;
    color: #737378;
    border-left: 1px solid rgba(255,255,255,.13);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bfff__nav { display: flex; align-items: stretch; }

.bfff__nav a {
    position: relative;
    min-width: 150px;
    min-height: 75px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    color: #d7d7da !important;
    border-left: 1px solid rgba(255,255,255,.1);
    text-decoration: none !important;
    font: 800 14px/1 "Barlow Condensed", Arial, sans-serif;
    letter-spacing: .055em;
    text-transform: uppercase;
    transition: color .28s ease, background .28s ease, padding-left .28s ease;
}

.bfff__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--bfff-red);
    box-shadow: 0 0 10px var(--bfff-red);
    transition: width .32s ease;
}

.bfff__nav a span { color: var(--bfff-hot); font: 700 8px/1 Inter, sans-serif; letter-spacing: .15em; }
.bfff__nav a:hover { color: #fff !important; padding-left: 30px; background: linear-gradient(90deg, rgba(242,31,47,.09), transparent); }
.bfff__nav a:hover::after { width: 100%; }

.bfff__bottom {
    width: min(1390px, 100%);
    min-height: 69px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.bfff__bottom p,
.bfff__status { margin: 0; color: #68686d; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bfff__status { display: flex; align-items: center; gap: 9px; }
.bfff__status i { width: 6px; height: 6px; background: var(--bfff-red); border-radius: 50%; box-shadow: 0 0 0 5px rgba(242,31,47,.1), 0 0 12px var(--bfff-red); animation: bfff-status 1.8s ease-in-out infinite; }

@keyframes bfff-scan { from { transform: translateX(-110%); } to { transform: translateX(520%); } }
@keyframes bfff-heartbeat { to { stroke-dashoffset: -1440; } }
@keyframes bfff-status { 50% { opacity: .35; transform: scale(.72); } }

@media (max-width: 900px) {
    .bfff { padding-top: 92px; }
    .bfff__inner { grid-template-columns: 1fr; gap: 42px; padding-bottom: 45px; }
    .bfff__nav { width: 100%; }
    .bfff__nav a { flex: 1; min-width: 0; }
}

@media (max-width: 580px) {
    .bfff { padding-inline: 18px; }
    .bfff__brand { justify-content: center; flex-direction: column; gap: 13px; text-align: center; }
    .bfff__tag { max-width: none; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
    .bfff__nav { display: grid; }
    .bfff__nav a { min-height: 62px; padding: 13px 4px; flex-direction: row; justify-content: flex-start; align-items: center; gap: 13px; border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
    .bfff__nav a:hover { padding-left: 10px; }
    .bfff__bottom { min-height: 96px; flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .bfff { opacity: 1; transform: none; transition: none; }
    .bfff__top-line span,
    .bfff__pulse-live,
    .bfff__status i { animation: none; }
}
