/* BLACKFRIDAY-THEME (31 Oct 2026): homepage layer, on only while the "Black Friday" offer is live
   or previewed. Decoration only: no prices, no controls. Motion is transform/opacity only. The layer
   sits in front of the hero background but behind the copy, character, coins and cards (as Halloween v2). */
body.theme-blackfriday {
    --ax-bf-mag: #ff2bd3;
    --ax-bf-vio: #a52dff;
    isolation: isolate;
    background-color: #050208;
}
body.theme-blackfriday .ax-bf-layer {
    position: absolute;
    inset: 0 0 auto;
    height: 1000px;
    z-index: 2;
    overflow: hidden;
    contain: layout paint;
    pointer-events: none;
    background:
        radial-gradient(42% 36% at 86% 14%, rgba(255, 43, 211, .14), transparent 70%),
        radial-gradient(38% 34% at 8% 30%, rgba(141, 44, 255, .16), transparent 70%);
}
body.theme-blackfriday .ax-bf-layer * { pointer-events: none; }

/* The giant outline words behind the hero. */
body.theme-blackfriday .ax-bf-word {
    position: absolute;
    top: 118px;
    left: -2vw;
    white-space: nowrap;
    font: 700 clamp(96px, 15vw, 250px)/.9 "Space Grotesk", Inter, system-ui, sans-serif;
    letter-spacing: -.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 43, 211, .2);
    opacity: .9;
    animation: ax-bf-drift 28s ease-in-out infinite alternate;
    will-change: transform;
}

/* Shop price tags on strings, swinging gently. */
body.theme-blackfriday .ax-bf-tag {
    position: absolute;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    width: 104px;
    height: 128px;
    padding: 26px 8px 10px;
    border-radius: 14px 14px 18px 18px;
    background: linear-gradient(160deg, #ff2bd3 0%, #c21fd0 55%, #8d2cff 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform-origin: 50% -70px;
    animation: ax-bf-swing 5.5s ease-in-out infinite;
    will-change: transform;
}
body.theme-blackfriday .ax-bf-tag::before {          /* punched hole */
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: #050208;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
body.theme-blackfriday .ax-bf-tag::after {           /* string up to the top */
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 2px;
    height: 70px;
    margin-left: -1px;
    margin-bottom: -16px;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .55));
}
body.theme-blackfriday .ax-bf-tag b {
    font: 700 24px/1 "Space Grotesk", Inter, system-ui, sans-serif;
    letter-spacing: -.01em;
}
body.theme-blackfriday .ax-bf-tag small {
    font: 800 12px/1.2 Inter, system-ui, sans-serif;
    letter-spacing: .12em;
}
body.theme-blackfriday .ax-bf-tag-a { top: 150px; right: 22%; }
body.theme-blackfriday .ax-bf-tag-b { top: 104px; right: 6%; animation-delay: -2s; animation-duration: 6.2s; }
body.theme-blackfriday .ax-bf-tag-c { top: 360px; right: 1.5%; width: 92px; height: 112px; animation-delay: -3.4s; animation-duration: 4.8s;
    background: linear-gradient(160deg, #1c0e2e, #0c0614); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 43, 211, .7); }
body.theme-blackfriday .ax-bf-tag-c b { font-size: 18px; color: #ff2bd3; }

/* A strip of shop tape across the bottom of the hero, text scrolling. */
body.theme-blackfriday .ax-bf-tape {
    position: absolute;
    left: -5vw;
    right: -5vw;
    bottom: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, #ff2bd3, #a52dff);
    transform: rotate(-3deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
body.theme-blackfriday .ax-bf-tape-run {
    display: flex;
    flex: none;
    white-space: nowrap;
    animation: ax-bf-tape 38s linear infinite;
    will-change: transform;
}
body.theme-blackfriday .ax-bf-tape-run span {
    flex: none;
    padding-right: 28px;
    font: 800 14px/40px Inter, system-ui, sans-serif;
    letter-spacing: .16em;
    color: #120618;
}

/* Brand accents on existing parts (no markup changes). */
body.theme-blackfriday .header {
    border-bottom-color: rgba(255, 43, 211, .32);
    box-shadow: 0 12px 36px rgba(255, 43, 211, .08);
}
body.theme-blackfriday #axPromoStack {
    background: linear-gradient(100deg, #0b0412, #2a0b2c 50%, #0b0412);
    border-bottom: 1px solid rgba(255, 43, 211, .4);
}
body.theme-blackfriday :is(.hero-copy h1 em, .split-head h2 em, .final-cta h2 em) {
    background-image: linear-gradient(110deg, #ffffff 0%, #ff8de9 45%, #ff2bd3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes ax-bf-drift { from { transform: translate3d(-3vw, 0, 0); } to { transform: translate3d(3vw, 0, 0); } }
@keyframes ax-bf-swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ax-bf-tape { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

@media (max-width: 767px) {
    body.theme-blackfriday .ax-bf-layer { height: 760px; }
    body.theme-blackfriday .ax-bf-word { top: 96px; font-size: 92px; -webkit-text-stroke-width: 1px; }
    body.theme-blackfriday .ax-bf-tag { width: 70px; height: 86px; padding-top: 20px; border-radius: 10px 10px 13px 13px; transform-origin: 50% -46px; }
    body.theme-blackfriday .ax-bf-tag::after { height: 46px; }
    body.theme-blackfriday .ax-bf-tag::before { top: 7px; width: 9px; height: 9px; margin-left: -4.5px; }
    body.theme-blackfriday .ax-bf-tag b { font-size: 16px; }
    body.theme-blackfriday .ax-bf-tag small { font-size: 9px; }
    /* Phones: the menu bar is taller and the copy fills the width, so the tags stay hidden. */
    body.theme-blackfriday .ax-bf-tag { display: none; }
    body.theme-blackfriday .ax-bf-tape { bottom: 70px; height: 30px; }
    body.theme-blackfriday .ax-bf-tape-run span { font-size: 11px; line-height: 30px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-blackfriday :is(.ax-bf-word, .ax-bf-tag, .ax-bf-tape-run) { animation: none !important; }
}
/* BLACKFRIDAY-THEME END */
