/*
 * Advertising banner (/banner, internal/web/banner.go): it lives in an iframe on other sites, as
 * wide as the iframe (1423 at most) and as tall as the iframe (150 at most). Written by hand, with
 * the brand colours of bullwife-tokens.css: the page loads only this sheet.
 */
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
html, body { height: 100%; margin: 0; background: transparent; }
.bn {
  position: relative; display: flex; align-items: center; gap: 24px; box-sizing: border-box;
  width: 100%; max-width: 1423px; height: min(100vh, 150px); margin: 0 auto; padding: 0 28px;
  overflow: hidden; background: #131417; color: #ECECEF;
  font-family: Geist, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
/* A glow of the brand colour behind the logo and a hairline at the bottom */
.bn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 0% 100%, rgb(184 32 74 / .3), transparent 70%);
}
.bn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #B8204A, rgb(184 32 74 / 0) 70%);
}
.bn a { position: relative; color: inherit; text-decoration: none; }
.bn a:focus-visible { outline: 2px solid #E0527A; outline-offset: 2px; border-radius: 6px; }

.bn-lead { position: relative; display: flex; align-items: center; gap: 24px; flex: none; }
.bn-brand { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.bn-brand svg { width: 46px; height: 46px; flex: none; }
.bn-brand b { font-weight: inherit; color: #E8C9A0; }
.bn-brand i { font-style: normal; color: #E0527A; }

.bn-text { display: block; max-width: 330px; }
.bn-text strong { display: block; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.bn-text small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.2; color: #A9AAB3; }

/* Scrolling ads: two equal laps, the strip moves by one lap and starts again */
.bn-strip, .bn-hero {
  flex: 1 1 0; min-width: 0; height: 122px; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
/* Too few ads to scroll: the three words of the brand instead */
.bn-hero {
  align-items: center; justify-content: center; gap: 14px; -webkit-mask-image: none; mask-image: none;
  color: #E8C9A0; font-size: 15px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap;
}
.bn-hero i { width: 5px; height: 5px; border-radius: 50%; background: #B8204A; }
/* An ad without a photo: the initial on the bordeaux of the missing covers */
.bn-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 26px;
  background: linear-gradient(160deg, #3A0A1A, #280813); color: rgb(232 201 160 / .85); font-size: 34px; font-weight: 600;
}
.bn-track { display: flex; height: 100%; width: max-content; animation: bn-run 80s linear infinite; }
.bn:hover .bn-track { animation-play-state: paused; }
.bn-set { display: flex; gap: 8px; height: 100%; padding-right: 8px; }
@keyframes bn-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bn-track { animation: none; } }

.bn-card {
  position: relative; flex: none; height: 100%; aspect-ratio: 94 / 122; overflow: hidden;
  border-radius: 14px; background: #1B1C20;
}
.bn-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 22px 8px 7px;
  background: linear-gradient(transparent, rgb(0 0 0 / .8)); color: #fff;
}
.bn-cap b, .bn-cap small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bn-cap b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.bn-cap small { font-size: 10.5px; line-height: 1.3; color: rgb(255 255 255 / .8); }

.bn-cta { display: flex; flex: none; flex-direction: column; align-items: center; gap: 8px; }
.bn-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; background: #B8204A; color: #fff;
  font-size: 16px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgb(184 32 74 / .35);
  transition: filter .15s;
}
.bn-cta:hover .bn-btn { filter: brightness(1.12); }
.bn-btn svg { width: 16px; height: 16px; }
.bn-short { display: none; }
.bn-cta small { font-size: 12px; color: #A9AAB3; white-space: nowrap; }

/* Under 1180: everything a little tighter */
@media (max-width: 1180px) {
  .bn { gap: 20px; padding: 0 22px; }
  .bn-lead { gap: 20px; }
  .bn-brand { font-size: 26px; }
  .bn-brand svg { width: 40px; height: 40px; }
  .bn-text { max-width: 250px; }
  .bn-text strong { font-size: 19px; }
  .bn-text small { display: none; }
  .bn-long { display: none; }
  .bn-short { display: inline; }
}
/* Under 900: the title goes under the logo */
@media (max-width: 900px) {
  .bn-lead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bn-brand { font-size: 22px; gap: 8px; }
  .bn-brand svg { width: 32px; height: 32px; }
  .bn-text { max-width: 200px; }
  .bn-text strong { font-size: 15px; line-height: 1.2; }
  .bn-btn { height: 42px; padding: 0 18px; font-size: 15px; }
}
/* Phone: logo and button on top, the ads below at full width */
@media (max-width: 640px) and (min-height: 120px) {
  .bn { display: grid; grid-template: auto minmax(0, 1fr) / 1fr auto; gap: 8px 12px; padding: 10px 0 12px; }
  .bn-lead { grid-area: 1 / 1; padding-left: 12px; align-self: center; }
  .bn-cta { grid-area: 1 / 2; padding-right: 12px; }
  .bn-text, .bn-cta small { display: none; }
  .bn-brand { font-size: 19px; gap: 7px; }
  .bn-brand svg { width: 28px; height: 28px; }
  .bn-btn { height: 34px; padding: 0 14px; font-size: 14px; gap: 6px; box-shadow: none; }
  .bn-btn svg { width: 13px; height: 13px; }
  .bn-strip, .bn-hero { grid-area: 2 / 1 / 3 / -1; height: auto; align-self: stretch; }
  .bn-hero { font-size: 12px; gap: 10px; }
  .bn-initial { font-size: 26px; padding-bottom: 20px; }
  .bn-strip { -webkit-mask-image: none; mask-image: none; padding-left: 12px; }
  .bn-set { gap: 6px; padding-right: 6px; }
  .bn-cap { padding: 16px 6px 5px; }
  .bn-cap b { font-size: 11.5px; }
  .bn-cap small { font-size: 9.5px; }
}
/* Short iframes (728 × 90, 320 × 100): one row, cards with the name only */
@media (max-height: 119px) {
  .bn { gap: 14px; padding: 0 14px; }
  .bn-strip { height: calc(100vh - 14px); }
  .bn-lead { flex-direction: row; align-items: center; gap: 14px; }
  .bn-brand { font-size: 20px; gap: 7px; }
  .bn-brand svg { width: 30px; height: 30px; }
  .bn-text strong { font-size: 15px; }
  .bn-text small, .bn-cta small, .bn-cap small { display: none; }
  .bn-cap { padding: 14px 6px 5px; }
  .bn-cap b { font-size: 11px; }
  .bn-long { display: none; }
  .bn-short { display: inline; }
  .bn-btn { height: 36px; padding: 0 14px; font-size: 14px; box-shadow: none; }
}
@media (max-height: 119px) and (max-width: 640px) {
  .bn-text { display: none; }
  .bn { gap: 10px; padding: 0 10px; }
  .bn-brand span { display: none; }
}
