/* Black Friday home page (11 Nov 2026). Loaded after forge.css on the home page only while the event is on (body.asc-bf).
   Art in img/blackfriday/: the eclipse hero clip + poster (the home hero repainted by AI, animated with kie.ai), the Eclipse Coin.
   Nothing here changes another page. */
.asc-bf { --bf-gold: #ffc45a; --bf-ember: #ff8a2b; --bf-pale: #fff1c8; }

/* ---------------------------------------------------------------- hero */
.asc-bf .hx__vid { filter: saturate(1.05) contrast(1.05); }
.asc-bf .hx__shade { background:
    linear-gradient(180deg, rgba(6, 5, 3, .55), rgba(6, 5, 3, .08) 24%, transparent 55%, rgba(8, 7, 5, .8) 90%),
    radial-gradient(ellipse 46% 42% at 50% 58%, rgba(5, 4, 2, .66), rgba(5, 4, 2, .3) 60%, rgba(5, 4, 2, .14)); }
.asc-bf .hx__rays { opacity: .22; filter: saturate(1.4) sepia(.4); }
/* the title in molten gold, with the eclipse's glow */
.asc-bf .hx__title {
    background:
        linear-gradient(105deg, transparent 38%, rgba(255, 250, 230, .9) 48%, rgba(255, 236, 190, .2) 54%, transparent 62%) no-repeat,
        linear-gradient(180deg, #fffbe9 0%, #ffe6a4 20%, #f2b54a 42%, #6d4209 53%, #c98a2a 63%, #ffd57c 82%, #fff4d2 100%);
    background-size: 260% 100%, 100% 100%; -webkit-background-clip: text; background-clip: text;
    animation: bfGlow 5s ease-in-out infinite, hxSheen 7s ease-in-out infinite; }
@keyframes bfGlow {
    0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 190, 80, .4)) drop-shadow(0 6px 26px rgba(0, 0, 0, .65)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 170, 60, .62)) drop-shadow(0 6px 26px rgba(0, 0, 0, .65)); }
}
.asc-bf .hx__claim em { color: var(--bf-gold); text-shadow: 0 0 18px rgba(255, 170, 60, .4); }
.asc-bf .hx__mark span { display: inline-flex; align-items: center; gap: 12px; color: #ffd98c; }
.asc-bf .hx__mark span::before, .asc-bf .hx__mark span::after { content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%;
    background: url("/template/ascendance/img/blackfriday/eclipse_coin.png") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 170, 60, .8)); }
.asc-bf .hx__mark em { font-style: normal; color: var(--bf-pale); margin-left: 6px; }
.asc-bf .hx .asc-btn--gold { filter: saturate(1.25) drop-shadow(0 0 14px rgba(255, 170, 60, .38)); }
.asc-bf .hx .asc-btn--gold:hover { filter: saturate(1.25) brightness(1.08) drop-shadow(0 0 22px rgba(255, 170, 60, .58)); }
body.asc.asc-bf .hxl__i b { background-image: linear-gradient(180deg, #fff8e0 0%, #ffd27a 42%, #c8861f 100%);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .85)) drop-shadow(0 0 14px rgba(255, 170, 60, .35)); }
.asc-bf .hx__down { color: var(--bf-gold); }

/* gold dust drifting over the city, sparks rising */
.bfh-dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bfh-dust i { position: absolute; inset: -20% -10%; opacity: .5; animation: bfDust 60s linear infinite;
    background:
        radial-gradient(1.5px 1.5px at 10% 30%, rgba(255, 214, 140, .9), transparent 60%), radial-gradient(1px 1px at 30% 70%, rgba(255, 214, 140, .8), transparent 60%),
        radial-gradient(2px 2px at 55% 40%, rgba(255, 200, 110, .7), transparent 60%), radial-gradient(1px 1px at 75% 20%, rgba(255, 230, 170, .8), transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 65%, rgba(255, 200, 110, .8), transparent 60%), radial-gradient(1px 1px at 45% 85%, rgba(255, 220, 150, .7), transparent 60%);
    background-size: 340px 340px; }
.bfh-dust i + i { opacity: .32; animation-duration: 95s; animation-direction: reverse; background-size: 520px 520px; }
@keyframes bfDust { to { transform: translate3d(-340px, -120px, 0); } }
.bfh-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bfh-sparks i { position: absolute; bottom: -8px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #ffd27a;
    box-shadow: 0 0 8px #ff9a3d, 0 0 2px #fff; opacity: 0; animation: bfRise var(--t) linear var(--d) infinite; }
@keyframes bfRise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .95; } 100% { transform: translate(30px, -70vh); opacity: 0; } }

/* the Black Friday box in the hero */
.bfh { position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; max-width: 660px; margin: 26px auto 6px;
    padding: 12px 16px 12px 12px; border-radius: 16px; text-align: left;
    background: linear-gradient(180deg, rgba(24, 19, 10, .86), rgba(10, 8, 5, .9)); border: 1px solid rgba(255, 196, 90, .42);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 170, 60, .14), inset 0 1px 0 rgba(255, 240, 200, .08); backdrop-filter: blur(6px); }
.bfh::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 120, .9), transparent) 0 0 / 200% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: bfEdge 4s linear infinite; }
@keyframes bfEdge { to { background-position: -200% 0; } }
.bfh__coin { width: 64px; height: 64px; border-radius: 50%; filter: drop-shadow(0 0 14px rgba(255, 160, 60, .6)); animation: bfSpin 9s ease-in-out infinite; }
@keyframes bfSpin { 50% { transform: rotate(-8deg) scale(1.04); } }
.bfh__text { display: grid; gap: 4px; min-width: 0; }
.bfh__badge { justify-self: start; padding: 3px 10px; border-radius: 99px; font: 800 10.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase;
    color: #1d1408; background: linear-gradient(180deg, #ffe2a1, #e0a443); }
.bfh__title { font: 700 16px/1.25 var(--serif); color: var(--bf-pale); }
.bfh__count { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; color: var(--muted); }
.bfh__count small { margin-right: 6px; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bf-gold); }
.bfh__count b { min-width: 34px; padding: 4px 6px; border-radius: 6px; text-align: center; font: 700 17px/1 var(--serif); color: var(--bf-pale);
    background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 196, 90, .25); }
.bfh__count i { font-style: normal; font-size: 11px; margin-right: 4px; }

/* ---------------------------------------------------------------- "The Eclipse" section */
.bfe { position: relative; padding: 90px 0 70px; background: radial-gradient(60% 70% at 50% 0%, rgba(255, 170, 60, .1), transparent 70%), #080705; }
.bfe .sh__eyebrow { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--bf-gold, #ffc45a); }
.bfe .sh__lead { color: var(--muted); max-width: 640px; margin: 10px auto 0; }
.bfe__c2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.bfe__card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0 0 16px; border-radius: 16px; overflow: hidden; text-align: center; color: var(--text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 18%, #0c0a08), #0d0b09 70%); border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent);
    transition: transform .25s, box-shadow .25s; }
.bfe__card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px color-mix(in srgb, var(--c1) 25%, transparent); }
/* the frames are 340 x 460: keep that shape (13 Nov, owner: "why are they still squashed" - was width 100 % = stretched ~1.7x) */
.bfe__pic { width: auto; max-width: 100%; height: 250px; aspect-ratio: 340 / 460; background-repeat: no-repeat; background-size: 600% 600%; background-position: 0 0;
    background-color: transparent; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.bfe__at { margin-top: -6px; padding: 3px 12px; border-radius: 99px; font: 700 14px/1.3 var(--serif); color: #1d1408; background: linear-gradient(180deg, #ffe2a1, #d6ab5c); }
.bfe__card b { font: 700 19px/1.2 var(--serif); color: color-mix(in srgb, var(--c1) 55%, #fff); }
.bfe__card small { color: var(--ok, #6edc8c); font-size: 12.5px; }
.bfe__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.bfe__box { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px;
    background: rgba(20, 17, 13, .8); border: 1px solid rgba(214, 171, 92, .2); }
.bfe__box img { width: 84px; height: 84px; border-radius: 50%; filter: drop-shadow(0 0 16px rgba(255, 160, 60, .45)); }
.bfe__box h3 { margin: 0 0 4px; font: 700 19px/1.2 var(--serif); color: var(--gold2, #f1d896); }
.bfe__box p { margin: 0; color: var(--muted); font-size: 14px; }
.bfe__box img.bfe__cashimg { filter: drop-shadow(0 0 16px rgba(90, 168, 255, .5)); }   /* the painted Cash coin (13 Nov; was a CSS "C" circle) */
.bfe__cash { width: 72px; height: 72px; justify-self: center; border-radius: 50%; display: grid; place-items: center; font: 800 30px/1 var(--serif); color: #0d2747;
    background: radial-gradient(circle at 35% 30%, #e9f5ff, #5aa8ff 55%, #1d4f8a); box-shadow: 0 0 22px rgba(90, 168, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .35); }
.bfe__cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------------------------------------------------------------- the strip on the donate page (asc_bf_donate_strip) */
.bfd { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px 18px 14px 14px; border-radius: 14px;
    background: linear-gradient(100deg, rgba(48, 34, 12, .9), rgba(14, 11, 7, .92) 60%); border: 1px solid rgba(255, 196, 90, .4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 30px rgba(255, 170, 60, .1); }
.bfd__coin { width: 54px; height: 54px; border-radius: 50%; filter: drop-shadow(0 0 12px rgba(255, 160, 60, .55)); }
.bfd__text { display: grid; gap: 6px; min-width: 0; }
.bfd__text strong { font: 700 15.5px/1.3 var(--serif); color: #fff1c8; }
.bfd__text small { color: var(--muted); font-size: 12.5px; }
.bfd__text .bfd__ok { color: var(--ok, #6edc8c); } .bfd__text .bfd__warn { color: #ffc45a; }
.bfd__bar { position: relative; display: block; height: 7px; margin: 4px 8px 4px 0; border-radius: 99px; background: #241e17; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.bfd__bar > span { position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: inherit; background: linear-gradient(90deg, #a8661b, #ffc45a, #fff1c8); }
.bfd__bar i { position: absolute; top: 50%; left: var(--at); width: 13px; height: 13px; transform: translate(-50%, -50%); border-radius: 50%;
    background: #17130f; border: 2px solid #4a3d2c; }
.bfd__bar i.is-done { background: radial-gradient(circle, #fff3cc, var(--c1)); border-color: #ffe7b0; box-shadow: 0 0 10px var(--c1); }
.bfd__bar i:last-child { transform: translate(-100%, -50%); }

@media (max-width: 980px) { .bfe__c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bfe__row { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
    .bfh { grid-template-columns: 48px 1fr; } .bfh__coin { width: 48px; height: 48px; } .bfh__ctas { grid-column: 1 / -1; justify-self: center; }
    .bfe__pic { height: 210px; } .bfe__box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .bfd { grid-template-columns: 42px 1fr; } .bfd__coin { width: 42px; height: 42px; } .bfd > .asc-btn { grid-column: 1 / -1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .bfh-dust i, .bfh-sparks i, .bfh__coin, .bfh::before, .asc-bf .hx__title { animation: none; } }
