/* Campaign styling stays local; the rest of the theme keeps its existing UI. */
.xgpu-bf {
  background: radial-gradient(ellipse 77% 65% at 50% 0%, #1d142c 0%, var(--xgpu-m-bg) 78%);
}
.xgpu-bf .xgpu-bf-hero { padding-block: clamp(2rem, 5vw, 4.35rem) clamp(2.5rem, 6vw, 5rem); }
.xgpu-bf-heading { margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
body.xgpu-marketing .xgpu-bf-heading .xgpu-m-eyebrow { margin-bottom: 1rem; }
.xgpu-bf-reboot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .38rem .85rem; }
.xgpu-bf-reboot del { color: #b7a9c7; text-decoration-color: #ff829b; text-decoration-thickness: .14em; }
.xgpu-bf-reboot-title { color: #f0deff; font-size: clamp(.85rem, 2.8vw, 1.18rem); font-weight: 750; letter-spacing: .075em; }
body.xgpu-marketing .xgpu-bf-heading .xgpu-m-title { max-width: 100%; font-size: clamp(1.95rem, 4vw, 3.9rem); line-height: 1.08; }
body.xgpu-marketing .xgpu-bf-heading .xgpu-m-title span { display: inline-block; }
.xgpu-bf-lead { margin: .95rem 0 0; color: var(--xgpu-m-muted); font-size: clamp(.9rem, 1.5vw, 1.075rem); }
.xgpu-bf-state { margin: .55rem 0 0; color: #d7bcf7; font-size: .82rem; }
.xgpu-bf-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.7vw, 1.4rem);
  max-width: 1120px; padding: 0; margin: 0 auto; list-style: none;
}
.xgpu-bf-card {
  --bf-accent: #dac1ff;
  --bf-line: #4b3766;
  --bf-glow: #634ba64d;
  --bf-card-padding: clamp(.95rem, 2vw, 1.55rem);
  display: flex; flex-direction: column; min-width: 0; gap: .75rem;
  padding: var(--bf-card-padding); border: 1px solid var(--bf-line); border-radius: 15px;
  background: radial-gradient(ellipse at 65% 14%, var(--bf-glow), transparent 70%), #15121f;
  box-shadow: 0 16px 40px #08091065;
}
.xgpu-bf-card:nth-child(2) { --bf-accent: #f2bff9; --bf-line: #583662; --bf-glow: #79388640; }
.xgpu-bf-card:nth-child(3) { --bf-accent: #c3cafa; --bf-line: #444571; --bf-glow: #454bb64d; }
.xgpu-bf-card:focus-within { border-color: var(--bf-accent); }
.xgpu-bf-spec, .xgpu-bf-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .8rem; }
.xgpu-bf-spec, .xgpu-bf-code code { font: 600 .74rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.xgpu-bf-vram { color: var(--bf-accent); border: 1px solid var(--bf-line); padding: .3rem .5rem; border-radius: .35rem; background: #100d18; }
.xgpu-bf-index { color: var(--xgpu-m-muted); letter-spacing: .06em; }
.xgpu-bf-art { position: relative; display: grid; place-items: center; min-width: 0; }
/* Контур остаётся виден без скрипта. Эффекты не влияют на размеры карточки. */
.xgpu-bf-symbol {
  position: relative; display: block; isolation: isolate;
  width: calc((100% + 2 * var(--bf-card-padding)) * .457);
  --bf-neon-a: #ed487c; --bf-neon-b: #6459f2;
}
.xgpu-bf-card:nth-child(2) .xgpu-bf-symbol { --bf-neon-a: #e443c6; --bf-neon-b: #4676f7; }
.xgpu-bf-card:nth-child(3) .xgpu-bf-symbol { --bf-neon-a: #3ae0ad; --bf-neon-b: #5365fc; }
.xgpu-bf-symbol img { display: block; width: 100%; height: auto; }
.xgpu-bf-symbol > img:first-child {
  filter: drop-shadow(-2px 0 4px var(--bf-neon-a)) drop-shadow(2px 0 9px var(--bf-neon-b));
}
.xgpu-bf-tear {
  display: none; position: absolute; inset: 0 auto auto -25%;
  width: 150%; height: 100%; max-width: none; pointer-events: none;
  filter: drop-shadow(0 0 5px var(--bf-neon-a));
}
.xgpu-bf-symbol.is-bf-glitching .xgpu-bf-tear { display: block; }
.xgpu-bf-symbol.is-bf-glitching > img { visibility: hidden; }
.xgpu-bf-card.is-sold-out .xgpu-bf-symbol { opacity: .24; }
.xgpu-bf-card.is-sold-out .xgpu-bf-symbol.is-bf-glitching .xgpu-bf-tear { display: none; }
.xgpu-bf-card.is-sold-out .xgpu-bf-symbol.is-bf-glitching > img { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .xgpu-bf-symbol.is-bf-glitching .xgpu-bf-tear { display: none; }
  .xgpu-bf-symbol.is-bf-glitching > img { visibility: visible; }
}
.xgpu-bf-sold-out {
  position: absolute; z-index: 1; inset-inline: 0; top: 50%; transform: translateY(-50%) rotate(-6deg);
  display: grid; gap: .18rem; padding: .42rem .35rem .5rem; border: 1px solid #ff7398; border-radius: .4rem;
  background: #40152c; color: #fff2f7; box-shadow: 0 5px 18px #1206109c; text-align: center; pointer-events: none;
}
.xgpu-bf-sold-out[hidden] { display: none; }
.xgpu-bf-sold-out strong { font-size: clamp(1.35rem, 4vw, 2.6rem); line-height: 1.04; letter-spacing: .015em; text-transform: uppercase; }
.xgpu-bf-sold-out span { color: #ffd2e2; font-size: .76rem; line-height: 1.26; }
.xgpu-bf-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; }
.xgpu-bf-card h2 { margin: 0; font-size: clamp(1rem, 2.1vw, 1.62rem); font-weight: 690; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; }
.xgpu-bf-regular { flex: none; color: #ff9ca8; font-size: clamp(.68rem, 1.15vw, .91rem); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xgpu-bf-regular-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xgpu-bf-regular s { text-decoration-thickness: 1px; }
.xgpu-bf-price { display: flex; flex-wrap: wrap; gap: 0 .6rem; align-items: baseline; margin: 0; }
.xgpu-bf-price strong { color: var(--bf-accent); font-weight: 720; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.06em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.xgpu-bf-price span, .xgpu-bf-code > span, .xgpu-bf-card-state { color: var(--xgpu-m-muted); font-size: .79rem; line-height: 1.35; }
.xgpu-bf-code { padding-top: .72rem; border-top: 1px solid var(--bf-line); }
.xgpu-bf-code code { color: var(--bf-accent); overflow-wrap: anywhere; }
.xgpu-bf-card-state { margin: 0; }
body.xgpu-marketing .xgpu-bf .xgpu-bf-cta { width: 100%; min-height: 46px; margin-top: auto; padding-inline: .7rem; justify-content: space-between; gap: .45rem; font-size: .82rem; }
.xgpu-bf-terms {
  display: flex; align-items: baseline; gap: .45rem 1rem; max-width: 1120px; padding: .85rem 1.05rem;
  margin: .95rem auto 0; border-left: 2px solid #8a62cc; background: #15121f; border-radius: .22rem .55rem .55rem .22rem;
}
.xgpu-bf-terms h2, .xgpu-bf-terms p { margin: 0; font-size: .84rem; line-height: 1.5; }
.xgpu-bf-terms p { color: var(--xgpu-m-muted); }
@media (max-width: 760px) {
  .xgpu-bf-grid { max-width: 460px; grid-template-columns: minmax(0, 1fr); }
  .xgpu-bf-card { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .xgpu-bf-spec, .xgpu-bf-price, .xgpu-bf-code, .xgpu-bf-card-state, .xgpu-bf-cta { grid-column: 1 / -1; }
  .xgpu-bf-art { grid-column: 1 / -1; grid-row: 2; }
  .xgpu-bf-card-heading { grid-column: 1 / -1; grid-row: 3; }
  .xgpu-bf-card h2 { font-size: 1.18rem; }
  .xgpu-bf-terms { display: block; max-width: 460px; }
  .xgpu-bf-terms h2 { margin-bottom: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.xgpu-marketing .xgpu-bf .xgpu-bf-cta { transition: none; }
}

/* A shared campaign clock above the cards, with a useful UTC fallback. */
body.xgpu-marketing .xgpu-bf-heading .xgpu-m-title > .xgpu-bf-title-line { display: inline; color: inherit; }
body.xgpu-marketing .xgpu-bf-title-accent { display: inline-block; color: #bd98ff; }
.xgpu-bf-countdown {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: .72rem; row-gap: .38rem;
  width: fit-content; max-width: 100%; margin: 1rem auto 0; padding: .42rem .8rem;
  border: 1px solid #624687; border-radius: .72rem; background: #211731; color: #ede0fb;
}
.xgpu-bf-countdown p { margin: 0; font-size: .82rem; font-weight: 650; }
.xgpu-bf-countdown time, .xgpu-bf-countdown-digits > span {
  font: 600 .73rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d7bcf7;
}
.xgpu-bf-countdown-digits { display: flex; flex-wrap: wrap; gap: .2rem .48rem; justify-content: center; }
.xgpu-bf-countdown-digits > span { white-space: nowrap; }
.xgpu-bf-countdown-digits strong { font-size: 1rem; color: #f5eaff; font-variant-numeric: tabular-nums; }
.xgpu-bf-ended-cta { margin-top: 1.25rem; }

/* The campaign shell and purchase controls stay intact. */
body.xgpu-marketing .xgpu-bf {
  background:
    radial-gradient(ellipse 44% 21% at 50% 0%, #361b3a 0%, transparent 100%),
    linear-gradient(180deg, #120e1d 0%, #0b0a12 50%, var(--xgpu-m-bg) 100%);
}
.xgpu-bf .xgpu-bf-heading { position: relative; }
.xgpu-bf-signals { display: grid; place-items: center; margin: 0 0 .85rem; }
.xgpu-bf-signals img {
  display: block; width: clamp(7rem, 19vw, 9.5rem); height: auto;
  filter: drop-shadow(0 0 2px #ff334fcc) drop-shadow(0 0 6px #ff24477a);
}
@media (prefers-reduced-motion: no-preference) {
  .xgpu-bf-signals img { animation: xgpu-bf-neon-breathe 12s ease-in-out infinite; }
}
@keyframes xgpu-bf-neon-breathe {
  0%, 100% { filter: drop-shadow(0 0 2px #ff334fcc) drop-shadow(0 0 6px #ff24477a); }
  50% { filter: drop-shadow(0 0 3px #ff425bdd) drop-shadow(0 0 9px #ff2447a6); }
}
.xgpu-bf-card { border-top: 2px solid var(--bf-line); }
.xgpu-bf-scene {
  color: var(--bf-accent); font: 650 .67rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere;
}
.xgpu-bf-use { margin: -.35rem 0 0; color: var(--xgpu-m-muted); font-size: .8rem; line-height: 1.35; }
@media (max-width: 760px) {
  .xgpu-bf-card .xgpu-bf-spec { grid-row: 1; }
  .xgpu-bf-card .xgpu-bf-use { grid-column: 1 / -1; }
}
