/* =========================================================
   A.G.E. PROJECT — HALLOWEEN 2026
   Banner-only seasonal insert.
   No hero/section/layout/SEO styles are modified here.
========================================================= */

:root {
    --hw-bg-1: #160405;
    --hw-bg-2: #4a0d0d;
    --hw-bg-3: #220607;
    --hw-ember: #e7a35f;
    --hw-bone: #d9c8ad;
    --hw-line: rgba(231, 163, 95, 0.34);
}

.halloween-strip {
    display: none;
}

html.halloween-mode .halloween-strip {
    position: fixed;
    top: 88px;
    right: 0;
    left: 0;
    z-index: 950;

    display: block;
    min-height: 64px;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 50%, rgba(139, 22, 18, 0.34), transparent 24%),
        radial-gradient(circle at 91% 50%, rgba(139, 22, 18, 0.28), transparent 22%),
        linear-gradient(90deg, var(--hw-bg-1), var(--hw-bg-2) 46%, var(--hw-bg-3));

    border-top: 1px solid rgba(231, 163, 95, 0.16);
    border-bottom: 1px solid rgba(231, 163, 95, 0.36);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition: top 300ms ease;
}

html.halloween-mode .halloween-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            116deg,
            transparent 0,
            transparent 58px,
            rgba(255, 255, 255, 0.018) 59px,
            transparent 60px
        );

    opacity: 0.68;
}

html.halloween-mode .site-header.is-scrolled ~ .halloween-strip {
    top: 76px;
}

.halloween-strip__inner {
    position: relative;
    z-index: 1;

    width: min(calc(100% - 44px), 1500px);
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 0;

    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 62px;
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
}

.halloween-strip__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.halloween-strip__events {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.5vw, 22px);

    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.halloween-strip__event {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.halloween-strip__event strong {
    font-size: clamp(0.78rem, 0.92vw, 0.94rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.halloween-strip__event > span {
    color: var(--hw-ember);
    font-size: clamp(0.76rem, 0.86vw, 0.9rem);
    font-weight: 780;
    letter-spacing: 0.04em;
}

.halloween-strip__event--special strong {
    color: #ffd8ad;
}

.halloween-strip__divider {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(231, 163, 95, 0.72),
        transparent
    );
}

.halloween-strip__tagline {
    margin: 0;
    overflow: hidden;

    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.68rem, 0.74vw, 0.79rem);
    line-height: 1.25;
    letter-spacing: 0.008em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.halloween-strip__tagline strong {
    color: var(--hw-bone);
    font-weight: 800;
}

.halloween-strip__cta {
    min-height: 34px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid rgba(231, 163, 95, 0.48);
    border-radius: 999px;

    box-shadow:
        0 0 0 1px rgba(95, 9, 9, 0.26),
        0 0 22px rgba(169, 38, 25, 0.16);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.halloween-strip__cta:hover,
.halloween-strip__cta:focus-visible {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 211, 164, 0.78);
    transform: translateY(-1px);
}

.halloween-strip__sigil,
.halloween-strip__bones {
    width: 100%;
    height: auto;
    pointer-events: none;
    opacity: 0.72;
}

.halloween-strip__sigil {
    fill: none;
    stroke: var(--hw-ember);
    stroke-width: 1.2;
}

.halloween-strip__sigil circle:last-child {
    fill: rgba(231, 163, 95, 0.05);
}

.halloween-strip__bones {
    fill: none;
    stroke: var(--hw-bone);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.5;
}

.halloween-strip__bones circle {
    fill: var(--hw-bone);
    stroke: none;
}

@media (max-width: 1180px) {
    .halloween-strip__inner {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .halloween-strip__bones {
        display: none;
    }

    .halloween-strip__events {
        gap: 12px;
    }

    .halloween-strip__event {
        gap: 7px;
    }

    .halloween-strip__event strong {
        font-size: 0.75rem;
    }

    .halloween-strip__event > span {
        font-size: 0.73rem;
    }

    .halloween-strip__tagline {
        font-size: 0.66rem;
    }
}

@media (max-width: 980px) {
    html.halloween-mode .halloween-strip {
        top: 82px;
        min-height: 62px;
    }

    html.halloween-mode .site-header.is-scrolled ~ .halloween-strip {
        top: 74px;
    }

    .halloween-strip__inner {
        width: min(calc(100% - 28px), 760px);
        min-height: 62px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 7px 0;
    }

    .halloween-strip__events {
        justify-content: flex-start;
        gap: 10px;
    }

    .halloween-strip__event {
        display: grid;
        gap: 2px;
    }

    .halloween-strip__event strong {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .halloween-strip__event > span {
        font-size: 0.67rem;
    }

    .halloween-strip__tagline {
        text-align: left;
        font-size: 0.62rem;
    }

    .halloween-strip__cta {
        min-height: 32px;
        padding: 0 14px;
        font-size: 0.66rem;
    }
}

@media (max-width: 680px) {
    html.halloween-mode .halloween-strip {
        min-height: 72px;
    }

    .halloween-strip__inner {
        width: calc(100% - 24px);
        min-height: 88px;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 8px 0 9px;
    }

    .halloween-strip__sigil {
        display: none;
    }

    .halloween-strip__copy {
        width: 100%;
        justify-items: center;
    }

    .halloween-strip__events {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        justify-content: stretch;
        gap: 12px;
        text-align: center;
    }

    .halloween-strip__divider {
        display: none;
    }

    .halloween-strip__event {
        width: 100%;
        min-width: 0;
        gap: 2px;
        justify-items: center;
        align-content: start;
        text-align: center;
    }

    .halloween-strip__event strong {
        width: 100%;
        font-size: 0.61rem;
        line-height: 1.12;
        text-align: center;
        white-space: normal;
    }

    .halloween-strip__event > span {
        width: 100%;
        font-size: 0.63rem;
        line-height: 1.1;
        text-align: center;
    }

    .halloween-strip__tagline {
        width: 100%;
        margin-top: 6px;
        overflow: visible;
        max-width: 100%;
        font-size: 0.6rem;
        line-height: 1.28;
        text-align: center;
        text-wrap: balance;
        text-overflow: clip;
        white-space: normal;
    }

    .halloween-strip__cta {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.61rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 430px) {
    .halloween-strip__tagline {
        max-width: none;
        font-size: 0.58rem;
        line-height: 1.26;
    }

    .halloween-strip__event strong {
        font-size: 0.58rem;
    }

    .halloween-strip__event > span {
        font-size: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.halloween-mode .halloween-strip,
    .halloween-strip__cta {
        transition: none;
    }
}
