/* Black Friday takeover: green-fog intro, live deal cards, countdown.
   Everything here is scoped to .bf / .bf-* / .fx-* and the html state classes:
   .bf-live (sale running) · .bf-intro (fog intro pending) · .bf-dissolve (fog rising)
   .bf-reveal (fog clearing, content entering) · .bf-fx (motion effects enabled) · .bf-ended */

@font-face {
  font-family: "Anton";
  src: url("assets/anton-regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bf-green: #39ff14;
  --bf-orange: #ff5a1f;
  --bf-cyan: #25e8ff;
}

/* ---------- Layering ---------- */
main, .bf { position: relative; z-index: 1; }
.bf-fog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  display: block;
  pointer-events: none;
}
.bf-fog.is-behind { z-index: 0; }
.bf-fog-fallback {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(57,255,20,.45), transparent 70%),
    url("assets/fog-tile.webp") repeat-x 0 100% / 120% 70%,
    #021a06;
}
.bf-flash {
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(210,255,190,.65), rgba(60,255,40,.22) 45%, transparent 75%);
}
.bf-flash.is-striking { animation: bf-strike .85s ease-out; }
@keyframes bf-strike {
  0% { opacity: 0 } 6% { opacity: 1 } 13% { opacity: .12 } 20% { opacity: .85 } 42% { opacity: .2 } 100% { opacity: 0 }
}

/* ---------- Page states ---------- */
.bf-ended .bf, .bf-intro .bf { display: none; }
.bf-dissolve main .stack {
  filter: blur(12px);
  opacity: 0;
  transform: scale(1.08);
  transition: filter 1s ease-in, opacity 1s ease-in, transform 1.2s ease-in;
}
/* Once the specials are showing, the 2027 preview follows them without repeating the big logo. */
.bf-live:not(.bf-intro) main {
  min-height: 0;
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.bf-live:not(.bf-intro) main .logo { display: none; }
.bf-live:not(.bf-intro) main .season { margin-top: 0; }

/* ---------- Section ---------- */
.bf {
  display: flex;
  justify-content: center;
  padding: clamp(26px, 4.5vw, 52px) 16px clamp(40px, 6vw, 72px);
  text-align: center;
}
.bf::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(720px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(57,255,20,.7), transparent);
  box-shadow: 0 0 12px rgba(57,255,20,.45);
}
.bf-inner { width: min(1120px, 100%); }
.bf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.bf-logo {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.9)) drop-shadow(0 0 14px rgba(8,237,6,.25));
}
.bf-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  margin: clamp(14px, 2vw, 22px) 0 0;
  color: #dcffd4;
  font: 700 clamp(11px, 1.3vw, 14px)/1.4 "Cinzel", Georgia, serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
}
.bf-kicker span { padding-left: .3em; white-space: nowrap; }
.bf-kicker::before, .bf-kicker::after {
  content: "";
  flex: 0 1 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bf-green));
  box-shadow: 0 0 8px rgba(57,255,20,.4);
}
.bf-kicker::after { transform: rotate(180deg); }

.bf-title {
  margin: clamp(6px, 1vw, 10px) 0 0;
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
}
.bf-title-black {
  display: block;
  color: #f3f5f0;
  font: 900 clamp(40px, 6.4vw, 92px)/1 "Cinzel", "Trajan Pro", Georgia, serif;
  letter-spacing: .035em;
  text-shadow:
    0 1px 0 #c4cbc0,
    0 2px 0 #9aa296,
    0 3px 0 #6c7369,
    0 4px 0 #444a42,
    0 8px 16px rgba(0,0,0,.9),
    0 0 30px rgba(57,255,20,.35);
}
.bf-title-black .w { display: inline-block; white-space: nowrap; }
.bf-title-black .ch { display: inline-block; }
.bf-title-specials {
  display: block;
  margin-top: -.02em;
  color: var(--bf-orange);
  font: 400 clamp(58px, 8.6vw, 124px)/.95 "Anton", Impact, "Arial Narrow", sans-serif;
  letter-spacing: .03em;
  transform: skewX(-10deg) rotate(-3deg);
  text-shadow:
    0 0 10px rgba(255,90,31,.8),
    0 0 36px rgba(255,60,0,.5),
    0 4px 0 #6b1300,
    0 9px 20px rgba(0,0,0,.85);
}

/* ---------- Deadline + countdown ---------- */
.bf-deadline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: clamp(18px, 2.6vw, 28px) auto 0;
}
.bf-ends {
  margin: 0;
  color: #eaffe5;
  font: 700 clamp(12px, 1.5vw, 15px)/1.5 "Cinzel", Georgia, serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
}
.bf-ends strong { color: var(--bf-green); text-shadow: 0 0 12px rgba(57,255,20,.55), 0 2px 8px #000; }
.bf-countdown { display: flex; justify-content: center; gap: clamp(8px, 1.2vw, 14px); }
.bf-countdown[hidden] { display: none; }
.bf-countdown > span {
  min-width: clamp(64px, 7vw, 86px);
  padding: 10px 6px 9px;
  border: 1px solid rgba(57,255,20,.45);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8,30,8,.88), rgba(0,0,0,.88));
  box-shadow: 0 0 18px rgba(57,255,20,.18), inset 0 1px rgba(255,255,255,.06);
}
.bf-countdown b {
  display: block;
  color: #eeffe8;
  font: 400 clamp(28px, 3.4vw, 42px)/1 "Anton", Impact, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(57,255,20,.7);
}
.bf-countdown small {
  display: block;
  margin-top: 5px;
  color: #a6dca1;
  font: 700 10px/1 "Cinzel", Georgia, serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Deal cards ---------- */
.bf-deals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.6vw, 48px);
  margin-top: clamp(28px, 4vw, 50px);
}
.bf-deal {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.bf-deal--ga { --c1: #5cff3a; --c2: #0d7a06; --halo: rgba(57,255,20,.55); }
.bf-deal--pass { --c1: #25e8ff; --c2: #39ff14; --halo: rgba(50,255,170,.5); }

.bf-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 26px 60px rgba(0,0,0,.7);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.bf-card.is-hover { transition-duration: .12s; }
.bf-card::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  filter: blur(24px);
  opacity: .32;
  animation: bf-halo 3.4s ease-in-out infinite;
}
@keyframes bf-halo { 0%, 100% { opacity: .22 } 50% { opacity: .5 } }

.bf-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  isolation: isolate;
}
.bf-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-wrap { position: absolute; inset: 0; pointer-events: none; }
.fx { position: absolute; pointer-events: none; }

/* A brightened copy of the artwork, masked to one spot, breathing in and out. */
.fx-lit, .fx-loom {
  inset: 0;
  background: var(--art) center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--x) var(--y), #000 32%, transparent 100%);
          mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--x) var(--y), #000 32%, transparent 100%);
}
.fx-lit {
  opacity: 0;
  mix-blend-mode: screen;
  filter: brightness(var(--b, 1.6)) saturate(1.3);
  animation: fx-breathe var(--d, 3.2s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes fx-breathe { 0%, 100% { opacity: 0 } 50% { opacity: var(--peak, .65) } }

/* The skull slowly looms toward you. */
.fx-loom {
  transform-origin: var(--x) var(--y);
  -webkit-mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--x) var(--y), #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--x) var(--y), #000 45%, transparent 100%);
  animation: fx-loom 5.5s ease-in-out infinite;
}
@keyframes fx-loom { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.04) } }

/* Glowing eyes inside the skull sockets. */
.fx-eye {
  --c: 57,255,20;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(240,255,225,.95) 0 6%, rgba(var(--c),.9) 15%, rgba(var(--c),.34) 36%, rgba(var(--c),0) 68%);
  animation: fx-eye 4.4s ease-in-out var(--dl, 0s) infinite;
}
.fx-eye.is-red { --c: 255,28,18; animation-name: fx-blink; animation-duration: 5.2s; }
@keyframes fx-eye {
  0%, 100% { opacity: .55; scale: .9 }
  44% { opacity: 1; scale: 1.08 }
  48% { opacity: .3 }
  52% { opacity: 1 }
  70% { opacity: .8; scale: 1 }
}
@keyframes fx-blink {
  0%, 100% { opacity: .9; scale: 1 }
  40% { opacity: 1; scale: 1.25 }
  86% { opacity: .9; scale: 1 1 }
  89% { opacity: .2; scale: 1 .1 }
  92% { opacity: .9; scale: 1 1 }
}

/* Light sweep across a brush-stroke banner. */
.fx-sheen {
  left: var(--l);
  right: var(--r);
  top: var(--t);
  bottom: var(--btm);
  border-radius: 10px;
  mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 0 36%, rgba(255,255,255,.95) 50%, transparent 64% 100%) no-repeat;
  background-size: 55% 100%;
  background-position: -150% 0;
  animation: fx-sheen 5.4s ease-in-out var(--dl, 0s) infinite;
}
@keyframes fx-sheen { 0%, 52% { background-position: -150% 0 } 84%, 100% { background-position: 250% 0 } }

/* Lightning: the bolt in the season-pass art flares, and the sky flashes with it. */
.fx-bolt { animation: fx-bolt 7.5s linear 1.2s infinite; }
@keyframes fx-bolt {
  0%, 60% { opacity: 0 } 61% { opacity: 1 } 62.5% { opacity: .15 } 64% { opacity: .95 }
  66% { opacity: .35 } 70%, 100% { opacity: 0 }
}
.fx-strike {
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 60% 46% at 51% 6%, rgba(205,228,255,.6), rgba(120,170,255,.14) 50%, transparent 76%);
  animation: fx-strike 7.5s linear 1.2s infinite;
}
@keyframes fx-strike {
  0%, 60% { opacity: 0 } 61% { opacity: .95 } 62.5% { opacity: .1 } 64% { opacity: .75 } 68%, 100% { opacity: 0 }
}

/* Wraith drifting in the Nixa woods. */
.fx-ghost { animation: fx-ghost 6.5s ease-in-out infinite; }
@keyframes fx-ghost {
  0%, 100% { opacity: .1; transform: translate(0, 0) }
  50% { opacity: .85; transform: translate(.6%, -2.4%) }
}

/* Mist rolling across the bottom of each card. */
.fx-mist {
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  overflow: hidden;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 100%);
          mask-image: linear-gradient(to top, #000 10%, transparent 100%);
}
.fx-mist i {
  position: absolute;
  left: 0;
  bottom: -12%;
  width: 200%;
  height: 120%;
  background: url("assets/fog-tile.webp") repeat-x left bottom / 50% 100%;
  opacity: .34;
  animation: fx-mist 30s linear infinite;
}
.fx-mist i + i { bottom: -34%; opacity: .26; animation-duration: 44s; animation-direction: reverse; }
@keyframes fx-mist { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* Pointer glare (desktop tilt). */
.fx-glare {
  inset: 0;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.7), transparent 46%);
  transition: opacity .35s;
}
.bf-card.is-hover .fx-glare { opacity: 1; }

/* Cards wait in the dark, then flicker to life when they come into view. */
.bf-fx .bf-card:not(.is-lit) .bf-art { filter: brightness(.14) saturate(.25); }
.bf-fx .bf-card.is-lit .bf-art { animation: bf-ignite 1.25s linear both; }
@keyframes bf-ignite {
  0% { filter: brightness(.14) saturate(.25) }
  8% { filter: brightness(1.6) saturate(1.3) }
  14% { filter: brightness(.25) saturate(.4) }
  24% { filter: brightness(1.3) saturate(1.2) }
  32% { filter: brightness(.5) saturate(.6) }
  55% { filter: brightness(1.12) saturate(1.1) }
  100% { filter: brightness(1) saturate(1) }
}

/* ---------- Deal copy + ticket buttons ---------- */
.bf-tag {
  margin: 20px 0 0;
  padding: 7px 13px 6px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 3px;
  background: rgba(0,0,0,.55);
  color: #e9f3e6;
  font: 700 11px/1 "Cinzel", Georgia, serif;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.bf-deal--ga .bf-tag { border-color: rgba(57,255,20,.5); }
.bf-deal--pass .bf-tag { border-color: rgba(37,232,255,.5); }
.bf-deal-title {
  margin: 12px 0 0;
  color: #fff;
  font: 400 clamp(26px, 2.8vw, 36px)/1.05 "Anton", Impact, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 3px 10px #000;
}
.bf-deal-title .price { color: var(--bf-green); text-shadow: 0 0 16px rgba(57,255,20,.6), 0 3px 10px #000; }
.bf-deal-copy {
  max-width: 40ch;
  margin: 8px auto 0;
  color: #dde8da;
  font: 600 clamp(14px, 1.4vw, 16px)/1.55 "Cinzel", Georgia, serif;
  text-shadow: 0 2px 6px #000;
}
.bf-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 32px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, #8dff6c 0%, #39ff14 46%, #20b80c 100%);
  color: #041a02;
  font: 400 21px/1 "Anton", Impact, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px #0b3d05, 0 10px 24px rgba(0,0,0,.6), 0 0 28px rgba(57,255,20,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bf-deal--pass .bf-btn { background: linear-gradient(180deg, #a6fff0 0%, #3cf2c0 30%, #39ff14 100%); }
.bf-btn svg { width: 24px; height: 24px; flex: none; }
.bf-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: bf-btn-sheen 4.2s cubic-bezier(.6,0,.2,1) infinite;
}
.bf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #0b3d05, 0 14px 30px rgba(0,0,0,.6), 0 0 46px rgba(57,255,20,.7);
}
.bf-btn:hover::after { animation-duration: 1.2s; }
.bf-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes bf-btn-sheen { 0%, 60% { transform: translateX(-130%) } 100% { transform: translateX(130%) } }

/* ---------- Entrance choreography (runs as the fog clears) ---------- */
.bf-reveal .bf-logo { animation: bf-rise 1s cubic-bezier(.2,.8,.2,1) .3s both; }
.bf-reveal .bf-kicker { animation: bf-rise .9s cubic-bezier(.2,.8,.2,1) .45s both; }
.bf-reveal .bf-title-black .ch { animation: bf-burn .95s cubic-bezier(.2,.7,.2,1) calc(.5s + var(--i) * 45ms) both; }
.bf-reveal .bf-title-specials {
  animation: bf-slam .6s cubic-bezier(.3,1.35,.4,1) 1.15s both, bf-neon 7s linear 2.4s infinite;
}
.bf-reveal .bf-deadline { animation: bf-rise .9s cubic-bezier(.2,.8,.2,1) 1.4s both; }
.bf-reveal .bf-deal { animation: bf-emerge 1.3s cubic-bezier(.2,.8,.2,1) calc(1.25s + var(--n) * .2s) both; }
@keyframes bf-rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes bf-burn {
  0% { opacity: 0; filter: blur(14px); transform: translateY(.3em) scale(1.3); color: #39ff14 }
  55% { opacity: 1; color: #c9ffbb }
  100% { opacity: 1; filter: blur(0); transform: none }
}
@keyframes bf-slam {
  0% { opacity: 0; transform: skewX(-10deg) rotate(-3deg) scale(2.4) }
  70% { opacity: 1; transform: skewX(-10deg) rotate(-3deg) scale(.94) }
  100% { opacity: 1; transform: skewX(-10deg) rotate(-3deg) scale(1) }
}
@keyframes bf-neon { 0%, 88%, 93%, 100% { opacity: 1 } 89% { opacity: .35 } 90.5% { opacity: .95 } 91.5% { opacity: .25 } }
@keyframes bf-emerge {
  from { opacity: 0; transform: translateY(80px) scale(.93); filter: blur(10px) }
  to { opacity: 1; transform: none; filter: blur(0) }
}

/* Touch screens have no pointer tilt, so the cards drift slightly instead. */
@media (hover: none) {
  .bf-fx .bf-card { animation: bf-sway 7s ease-in-out infinite; }
  .bf-fx .bf-deal--pass .bf-card { animation-delay: -3.5s; }
}
@keyframes bf-sway {
  0%, 100% { transform: perspective(1100px) rotateX(2deg) rotateY(-3deg) }
  50% { transform: perspective(1100px) rotateX(-2deg) rotateY(3deg) }
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 760px) {
  .bf { padding-top: 26px; }
  .bf-deals { grid-template-columns: 1fr; gap: 52px; }
  .bf-card { max-width: 480px; }
  .bf-btn { width: min(100%, 360px); }
  .bf-countdown > span { min-width: 62px; }
}
@media (max-width: 380px) {
  .bf-countdown { gap: 6px; }
  .bf-countdown > span { min-width: 56px; padding-inline: 4px; }
  .bf-kicker { letter-spacing: .2em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bf-card::before, .fx-lit, .fx-loom, .fx-eye, .fx-sheen, .fx-bolt, .fx-strike, .fx-ghost,
  .fx-mist i, .bf-btn::after, .bf-title-specials { animation: none !important; }
  .fx-lit, .fx-strike, .fx-sheen { opacity: 0; }
  .fx-eye { opacity: .7; }
  .bf-card { transform: none; }
}
