/* 20260928-cut-engine — Obie glass IMG_9779 card sheet repair */
@font-face {
  font-family: "LPF Bebas";
  src: url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LPF BlackOps";
  src: url("/assets/fonts/BlackOpsOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LPF CinzelDec";
  src: url("/assets/fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lpf-red: #E00405;
  --lpf-yellow: #F4E409;
}

#brother-bb-sheet {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) 12px max(72px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  pointer-events: auto;
}
#brother-bb-sheet[hidden] { display: none !important; }

#brother-bb-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 20260930-bb-three-fix — stage receives touch so iPhone Safari can scroll */
#brother-bb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(390px, 94vw);
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 20261005-house-ribbons-heavy — card scroll-end rubber ≤12px: native bounce runs far past 12px, so none. */
  overscroll-behavior-y: none;
  pointer-events: auto;
  touch-action: pan-y;
}
#brother-bb-stage > * { pointer-events: auto; }

#brother-bb-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  left: auto;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

/* 20260930-bb-card-scroll — one face · height follows content · stage scrolls · man does not grow. */
/* 20260930-bb-three-fix — overflow visible so stage can scroll to footer + ADD A SKILL; do not grow photo */
#brother-bb-card.lpf-card,
#brother-bb-card {
  --lpf-red: #E00405;
  --lpf-yellow: #F4E409;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  background: #000;
  overflow: visible;
  border-radius: 10px;
  color: #fff;
  will-change: transform;
  transform: translateZ(0);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 24px 64px rgba(0, 0, 0, 0.45);
  cursor: default;
  touch-action: pan-y;
}
.bb-front-hero {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  min-height: 300px;
  aspect-ratio: 1080 / 1350;
}
#brother-bb-card[data-chips="1"] .bb-front-hero,
#brother-bb-card[data-chips="2"] .bb-front-hero {
  aspect-ratio: 1080 / 1420;
}
#brother-bb-card[data-chips="3"] .bb-front-hero,
#brother-bb-card[data-chips="4"] .bb-front-hero,
#brother-bb-card[data-chips="5"] .bb-front-hero {
  aspect-ratio: 1080 / 1500;
}

#brother-bb-card.bb-enter {
  animation: lpf-spring-enter 280ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes lpf-spring-enter {
  from { transform: translate3d(0, 10px, 0) scale(0.94); opacity: 0.92; }
  to   { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

.lpf-slash {
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
  height: 24%;
  background: var(--lpf-red);
  clip-path: polygon(46% 0, 100% 0, 100% 78%, 70% 100%);
  z-index: 1;
  pointer-events: none;
}

.lpf-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--lpf-red);
  z-index: 2;
  pointer-events: none;
}

/* Man LEFT — TURN THE CARD, never scaleX(-1) */
.lpf-well {
  position: absolute;
  left: -6%;
  top: 3%;
  width: 62%;
  height: 78%;
  z-index: 4;
  background: transparent;
  border: 0;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
/* Photo-grow when sparse (0–1 chips): photo owns lonely zone. ≥2 = stacked well. No third size. */
#brother-bb-card[data-chips="0"] .lpf-well,
#brother-bb-card[data-chips="1"] .lpf-well,
#brother-bb-card[data-sparse="1"] .lpf-well {
  top: 1.5%;
  left: -8%;
  width: 84%;
  height: 86%;
}
#brother-bb-card[data-layout="man-right"][data-chips="0"] .lpf-well,
#brother-bb-card[data-layout="man-right"][data-chips="1"] .lpf-well,
#brother-bb-card[data-layout="man-right"][data-sparse="1"] .lpf-well {
  left: auto;
  right: -8%;
}
/* Stacked well (≥2) — normal size. */
#brother-bb-card[data-chips="2"] .lpf-well {
  top: 2.85%;
  height: 74.1%;
  width: 62%;
}
#brother-bb-card[data-chips="3"] .lpf-well,
#brother-bb-card[data-chips="4"] .lpf-well,
#brother-bb-card[data-chips="5"] .lpf-well {
  top: 2.7%;
  height: 70.2%;
  width: 62%;
}
.lpf-well.is-empty {
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  left: 2%;
  top: 8%;
  width: 48%;
  height: 62%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.lpf-well.is-empty .lpf-man { display: none !important; }
.lpf-well-label {
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.lpf-well-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  color: rgba(180, 180, 180, 0.9);
}
.lpf-man {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
  /* white stroke without rembg — soft ring via drop-shadow */
  filter:
    drop-shadow(0 0 0.5px #fff)
    drop-shadow(0 0 1.5px #fff)
    drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.85))
    drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  /* NEVER scaleX(-1) — TURN THE CARD */
  transform: none;
}
.lpf-well.bb-well--tappable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lpf-well.bb-well--tappable:active { opacity: 0.92; }

/* Official bolt face — no PHOTO label; CSS stroke is rembg stand-in */
.lpf-well.is-bolt {
  background: transparent;
  border: 0;
  /* keep man-left geometry (not dashed empty box) */
  left: -2%;
  top: 10%;
  width: 52%;
  height: 58%;
  align-items: center;
  justify-content: center;
}
.lpf-well.is-bolt .lpf-man {
  display: block !important;
  width: 72%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  object-position: center center;
  filter:
    drop-shadow(0 0 0.5px #fff)
    drop-shadow(0 0 1.5px #fff)
    drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.85))
    drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  transform: none;
}
.lpf-well.is-bolt .lpf-well-label,
.lpf-well.is-bolt .lpf-well-sub {
  display: none !important;
}

/* ===== 20261007-empty-card-hybrid — Mystery Storm Pack + House Totem ===== */
.lpf-well.is-storm-pack {
  background: transparent;
  border: 0;
  left: 2%;
  top: 4%;
  width: 56%;
  height: 72%;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  border-radius: 14px;
}
.lpf-well.is-storm-pack .lpf-man {
  display: none !important;
}
.lpf-well.is-storm-pack .lpf-well-label,
.lpf-well.is-storm-pack .lpf-well-sub {
  display: none !important;
}
.bb-storm-pack {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(242, 201, 76, 0.35), transparent 55%),
    radial-gradient(100% 90% at 90% 80%, rgba(60, 120, 200, 0.45), transparent 50%),
    linear-gradient(145deg, #0a0a0c 0%, #12151c 40%, #0b1020 70%, #000 100%);
  box-shadow:
    inset 0 0 0 2px rgba(242, 201, 76, 0.55),
    inset 0 0 24px rgba(60, 120, 200, 0.25),
    0 10px 22px rgba(0, 0, 0, 0.45);
}
.bb-storm-pack[hidden] { display: none !important; }
.bb-storm-foil {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(242, 201, 76, 0.08) 35%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(60, 140, 220, 0.18) 58%,
    transparent 72%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: bb-storm-sheen 6.5s ease-in-out infinite;
}
.bb-storm-watermark {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: clamp(14px, 3.6vw, 20px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.22);
  text-shadow: 0 0 12px rgba(60, 120, 200, 0.35);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.bb-storm-window {
  position: relative;
  z-index: 4;
  width: 58%;
  aspect-ratio: 1;
  max-height: 58%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(242, 201, 76, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 0 18px rgba(242, 201, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-storm-totem {
  width: 72%;
  height: 72%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-storm-totem svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(242, 201, 76, 0.35));
}
.bb-storm-starburst {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 18px;
  height: 18px;
  z-index: 5;
  background:
    radial-gradient(circle, #F2C94C 0 2px, transparent 3px),
    conic-gradient(from 20deg, transparent 0 20deg, rgba(242, 201, 76, 0.85) 0 22deg, transparent 0 45deg, rgba(242, 201, 76, 0.7) 0 47deg, transparent 0);
  pointer-events: none;
  opacity: 0.9;
}
.bb-storm-rarity {
  position: absolute;
  left: 8%;
  bottom: 8%;
  z-index: 5;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(242, 201, 76, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.bb-storm-pack[data-rarity="uncommon"] {
  box-shadow:
    inset 0 0 0 2px rgba(160, 200, 255, 0.65),
    inset 0 0 28px rgba(60, 120, 200, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.45);
}
.bb-storm-pack[data-rarity="holo"] {
  box-shadow:
    inset 0 0 0 2px rgba(242, 201, 76, 0.9),
    inset 0 0 0 4px rgba(60, 140, 220, 0.35),
    inset 0 0 34px rgba(242, 201, 76, 0.28),
    0 12px 26px rgba(0, 0, 0, 0.5);
}
.bb-storm-pack[data-rarity="holo"] .bb-storm-foil {
  animation-duration: 4.2s;
  opacity: 1;
}
@keyframes bb-storm-sheen {
  0% { transform: translateX(-18%) translateY(6%) rotate(8deg); }
  50% { transform: translateX(18%) translateY(-6%) rotate(8deg); }
  100% { transform: translateX(-18%) translateY(6%) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-storm-foil {
    animation: none !important;
    opacity: 0.35;
    transform: none;
  }
}

/* Rarity on frame ONLY — never fill % */
.lpf-card[data-rarity="common"] {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.lpf-card[data-rarity="uncommon"] {
  box-shadow:
    0 0 0 1px rgba(120, 170, 255, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.55);
}
.lpf-card[data-rarity="holo"] {
  box-shadow:
    0 0 0 1px rgba(242, 201, 76, 0.55),
    0 0 18px rgba(60, 140, 220, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

.lpf-collector {
  margin: 4px 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(242, 201, 76, 0.85);
  text-transform: uppercase;
}
.lpf-collector[hidden] { display: none !important; }
.lpf-oneliner {
  margin: 6px 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.lpf-oneliner[hidden] { display: none !important; }

.lpf-card[data-layout="man-right"] .lpf-well.is-storm-pack {
  left: auto;
  right: 2%;
}


#brother-bb-drop {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 8;
  margin: 0;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#brother-bb-drop[hidden] { display: none !important; }


.lpf-nameblock {
  position: absolute;
  right: 2.2%;
  top: 2.2%;
  width: 52%;
  z-index: 6;
  background: #000;
  border: 3px solid #fff;
  border-radius: 18px;
  padding: 8px 12px 10px;
  box-shadow: 8px 12px 18px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.lpf-kicker {
  margin: 0;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--lpf-yellow);
}
.lpf-first {
  margin: 2px 0 0;
  font-family: "LPF BlackOps", "Black Ops One", Impact, sans-serif;
  font-size: 32px;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: normal;
}
.lpf-last {
  margin: 4px 0 0;
  font-family: "LPF CinzelDec", "Cinzel Decorative", serif;
  font-size: clamp(13px, 4vw, 18px);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: normal;
  max-width: 100%;
  overflow: hidden;
}
.lpf-last[hidden] { display: none !important; }
.lpf-joined {
  position: relative;
  left: auto;
  bottom: auto;
  margin: 10px 0 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 8px;
  padding: 2px 8px 3px;
  min-width: 54px;
  z-index: 1;
  box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.45);
  line-height: 1;
}
.lpf-class {
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lpf-yellow);
}
.lpf-year {
  font-family: "LPF BlackOps", "Black Ops One", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 0.9;
}
.lpf-joined[hidden] { display: none !important; }

.lpf-stack {
  position: absolute;
  right: 2.2%;
  top: 42%;
  bottom: 22%;
  width: 52%;
  z-index: 5;
  /* 20260929-bb-stripe-under-chips — do not clip chips over mark; JS seats mark under */
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}
#brother-bb-card[data-chips="0"] .lpf-stack,
#brother-bb-card[data-chips="1"] .lpf-stack {
  top: 40%;
  bottom: 18%;
}
#brother-bb-card[data-chips="2"] .lpf-stack {
  top: 40%;
  bottom: 18%;
}
#brother-bb-card[data-chips="3"] .lpf-stack,
#brother-bb-card[data-chips="4"] .lpf-stack,
#brother-bb-card[data-chips="5"] .lpf-stack {
  top: 36%;
  bottom: 15%;
}
.lpf-chip {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 6px;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  text-align: left;
  color: inherit;
  border: 3px solid #fff;
  background: #000;
  border-radius: 14px;
  box-shadow: 6px 8px 14px rgba(0, 0, 0, 0.4);
  transform: scale(1);
  transform-origin: right center;
  animation: lpf-chipIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  font: inherit;
}
.lpf-chip:nth-child(1) { animation-delay: 0.05s; }
.lpf-chip:nth-child(2) { animation-delay: 0.12s; }
.lpf-chip:nth-child(3) { animation-delay: 0.18s; }
.lpf-chip:nth-child(4) { animation-delay: 0.24s; }
.lpf-chip:nth-child(5) { animation-delay: 0.30s; }
.lpf-chip[hidden] { display: none !important; }

.lpf-tile {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--lpf-yellow);
  color: #000;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  animation: none;
}
.lpf-chip:nth-child(2) .lpf-tile { animation-delay: 0.7s; }
.lpf-chip:nth-child(3) .lpf-tile { animation-delay: 1.1s; }
.lpf-chip:nth-child(4) .lpf-tile { animation-delay: 1.5s; }
.lpf-chip:nth-child(5) .lpf-tile { animation-delay: 1.9s; }
.lpf-tile svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}
.lpf-tile::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  animation: none;
}
.lpf-meta small {
  display: block;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--lpf-yellow);
}
.lpf-meta b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  margin-top: 2px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-width: 100%;
  max-height: 2.5em;
  word-break: break-word;
}
.lpf-chip.is-down { transform: scale(1.1); z-index: 8; }
.lpf-chip.is-bio {
  box-shadow: 6px 8px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--lpf-yellow);
}

/* 20260929-bb-earn-chips — self sparse dashed ghosts + quiet CTA. Stillness. */
.lpf-chip.is-ghost {
  border: 2px dashed rgba(255, 255, 255, 0.42);
  background: transparent;
  box-shadow: none;
  animation: none !important;
  opacity: 0.92;
}
.lpf-chip.is-ghost .lpf-tile {
  background: transparent;
  border: 1.5px dashed rgba(244, 228, 9, 0.5);
  color: rgba(244, 228, 9, 0.62);
  animation: none !important;
}
.lpf-chip.is-ghost .lpf-tile::after { display: none !important; }
.lpf-chip.is-ghost .lpf-meta small {
  color: rgba(244, 228, 9, 0.62);
}
.lpf-chip.is-ghost .lpf-meta b {
  color: rgba(255, 255, 255, 0.28);
  min-height: 1em;
}
.lpf-chip.is-ghost.is-down { transform: scale(1.04); }

/* Card grows enough for ghost stack; photo-grow stays on data-sparse */
#brother-bb-card[data-sparse="1"][data-ghosts="1"] {
  aspect-ratio: 1080 / 1420;
}
#brother-bb-card[data-sparse="1"][data-ghosts="2"],
#brother-bb-card[data-sparse="1"][data-ghosts="3"] {
  aspect-ratio: 1080 / 1500;
}
#brother-bb-card[data-sparse="1"][data-ghosts="1"] .lpf-stack,
#brother-bb-card[data-sparse="1"][data-ghosts="2"] .lpf-stack,
#brother-bb-card[data-sparse="1"][data-ghosts="3"] .lpf-stack {
  top: 36%;
  bottom: 15%;
}
/* Photo-grow KEEP when sparse even with ghosts present */
#brother-bb-card[data-sparse="1"] .lpf-well {
  top: 1.5%;
  left: -8%;
  width: 84%;
  height: 86%;
}
#brother-bb-card[data-layout="man-right"][data-sparse="1"] .lpf-well {
  left: auto;
  right: -8%;
}

#brother-bb-earn-cta {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lpf-yellow);
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  padding: 4px 12px 8px;
  min-height: 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
  opacity: 0.92;
}
#brother-bb-earn-cta[hidden] { display: none !important; }
#brother-bb-earn-cta:active { opacity: 0.7; }

/* Wordmark in footer (one-face). look.js still measures .lpf-mark. */
.lpf-mark {
  position: relative;
  right: auto;
  bottom: auto;
  height: 44px;
  width: auto;
  max-width: 56%;
  z-index: 3;
  pointer-events: none;
  margin: 0 auto 2px;
}
.lpf-mark img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

@keyframes lpf-chipIn {
  from { opacity: 0; transform: translateX(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes lpf-tileBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes lpf-sweep {
  0%, 55% { transform: translateX(-70%); }
  100% { transform: translateX(130%); }
}

.lpf-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s;
}
#brother-bb-card.is-open .lpf-veil {
  opacity: 1;
  pointer-events: auto;
}

.lpf-detail {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 12%;
  background: #000;
  border: 3px solid #fff;
  border-radius: 22px;
  padding: 18px 16px 16px;
  z-index: 21;
  transform: scale(0.72);
  opacity: 0;
  pointer-events: none;
  transform-origin: top right;
  transition: transform 0.24s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.18s;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  max-height: 76%;
  overflow: auto;
  box-sizing: border-box;
}
#brother-bb-card.is-open .lpf-detail {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.lpf-detail .hero-tile {
  width: 64px;
  height: 64px;
  background: var(--lpf-yellow);
  color: #000;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.lpf-detail small {
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  color: var(--lpf-yellow);
  letter-spacing: 0.1em;
}
.lpf-detail h2 {
  margin: 4px 0 10px;
  font-family: "LPF BlackOps", "Black Ops One", Impact, sans-serif;
  font-size: 26px;
  line-height: 1;
}
.lpf-detail p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #ddd;
  white-space: pre-wrap;
}
.lpf-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lpf-facts li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #222;
  font-size: 14px;
}
.lpf-facts b {
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  color: var(--lpf-yellow);
  width: 92px;
  flex: 0 0 92px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.lpf-detail-close {
  margin-top: 12px;
  border: 0;
  background: var(--lpf-yellow);
  color: #000;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 20260930-bb-card-scroll — footer inside chrome · one face */
.bb-card-footer {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px 12px;
  box-sizing: border-box;
  background: #000;
  flex: 0 0 auto;
  width: 100%;
  pointer-events: auto;
}
.bb-footer-rail,
.bb-card-footer .lpf-rail {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 4px;
  margin: 0 0 8px;
  background: var(--lpf-red, #E00405);
  z-index: 2;
  pointer-events: none;
  border-radius: 2px;
}
.bb-footer-self {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 2px;
}

/* 20260930-bb-footer-center — red rail · SOT mark · SHARE/SAVE optic midline */
.bb-card-footer {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.bb-card-footer .bb-footer-rail,
.bb-card-footer .lpf-rail {
  align-self: stretch;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  left: auto;
  right: auto;
}
.bb-card-footer .lpf-mark,
.bb-card-footer .bb-footer-mark,
.lpf-card[data-layout="man-left"] .bb-card-footer .lpf-mark,
.lpf-card[data-layout="man-right"] .bb-card-footer .lpf-mark {
  position: relative;
  left: auto !important;
  right: auto !important;
  inset: auto;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  display: flex;
  justify-content: center;
  width: auto;
  max-width: 56%;
}
.bb-card-footer .lpf-mark img,
.bb-card-footer .bb-footer-mark img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.bb-card-footer .bb-footer-actions,
.bb-card-footer .bb-actions {
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.bb-card-footer .bb-footer-actions button,
.bb-card-footer .bb-actions button {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.bb-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px 4px 0;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
}
#brother-bb-edit,
#brother-bb-share {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lpf-yellow);
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
}
#brother-bb-edit {
  color: #111;
  background: var(--lpf-yellow);
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 10px 28px;
  min-height: 48px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}
#brother-bb-edit[hidden] { display: none !important; }
#brother-bb-edit:active {
  opacity: 0.85;
  transform: translateY(1px);
}
#brother-bb-share {
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  min-height: 34px;
}
#brother-bb-share:active { opacity: 0.75; }
#brother-bb-save {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  min-height: 32px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
}
#brother-bb-save:active { opacity: 0.7; }

body.tb-bb-open #fab,
body.tb-bb-open #fab-say { opacity: 0.35; pointer-events: none; }


/* TURN THE CARD layouts — never scaleX(-1) on .lpf-man */
.lpf-card[data-layout="man-left"] .lpf-well {
  left: -6%;
  right: auto;
  justify-content: flex-start;
}
.lpf-card[data-layout="man-left"] .lpf-man {
  object-position: left top;
  transform: none;
}
.lpf-card[data-layout="man-left"] .lpf-nameblock {
  right: 2.4%;
  left: auto;
}
.lpf-card[data-layout="man-left"] .lpf-stack {
  right: 2%;
  left: auto;
}
.lpf-card[data-layout="man-left"] .lpf-chip {
  transform-origin: right center;
}
.lpf-card[data-layout="man-left"] .lpf-mark:not(.bb-footer-mark) {
  right: 1.6%;
  left: auto;
}
.lpf-card[data-layout="man-left"] .lpf-joined {
  left: auto;
  right: 10px;
}
.lpf-card[data-layout="man-left"] .lpf-slash {
  right: 0;
  left: auto;
  top: 0;
  width: 68%;
  height: 30%;
  clip-path: polygon(10% 0, 100% 0, 70% 78%, 36% 100%, 0 16%);
}

.lpf-card[data-layout="man-right"] .lpf-well {
  right: -6%;
  left: auto;
  justify-content: flex-end;
}
.lpf-card[data-layout="man-right"] .lpf-man {
  object-position: right top;
  transform: none; /* NEVER scaleX(-1) */
}
.lpf-card[data-layout="man-right"] .lpf-nameblock {
  left: 2.4%;
  right: auto;
}
.lpf-card[data-layout="man-right"] .lpf-stack {
  left: 2%;
  right: auto;
}
.lpf-card[data-layout="man-right"] .lpf-chip {
  transform-origin: left center;
}
.lpf-card[data-layout="man-right"] .lpf-mark:not(.bb-footer-mark) {
  left: 1.6%;
  right: auto;
}
.lpf-card[data-layout="man-right"] .lpf-slash {
  left: 0;
  right: auto;
  top: 0;
  width: 68%;
  height: 30%;
  clip-path: polygon(0 0, 90% 0, 100% 16%, 64% 100%, 30% 78%);
}
.lpf-card[data-layout="man-right"] .lpf-well.is-bolt {
  right: -2%;
  left: auto;
}

#brother-bb-card[data-zach-fit="1"][data-layout="man-right"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-sparse="1"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-chips="0"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-chips="1"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-chips="2"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-chips="3"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-chips="4"] .lpf-well,
#brother-bb-card[data-zach-fit="1"][data-layout="man-right"][data-chips="5"] .lpf-well {
  width: 48%;
  right: -3%;
  left: auto;
  top: 5%;
  height: 72%;
}

/* Die-cut vs honest window — no fake circle crop */
.lpf-well.is-diecut {
  background: transparent;
  border: 0;
  overflow: visible;
}
.lpf-well.is-window {
  background: transparent;
  border: 0;
  overflow: hidden;
  border-radius: 14px;
}
.lpf-well.is-window .lpf-man {
  object-fit: cover;
  /* rectangular window + CSS white stroke stand-in */
  filter:
    drop-shadow(0 0 0.5px #fff)
    drop-shadow(0 0 1.5px #fff)
    drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.85))
    drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  transform: none;
}
/* Two-person photo. The window keeps both. Faces sit in the open side. */
#brother-bb-card[data-group-window="1"] .lpf-well.is-window .lpf-man {
  object-position: 62% 58%;
}
.lpf-well.is-diecut .lpf-man {
  object-fit: contain;
  filter:
    drop-shadow(0 0 0.5px #fff)
    drop-shadow(0 0 1.5px #fff)
    drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.85))
    drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  transform: none;
}
/* Sticker: one subject, not a man. Centered. The man size and the 16% pull do not apply. */
.lpf-well.is-sticker {
  background: transparent;
  border: 0;
  overflow: visible;
}
.lpf-well.is-sticker .lpf-man {
  object-fit: contain;
  filter:
    drop-shadow(0 0 0.6px #fff)
    drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.9))
    drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  transform: none;
}


/* 20260929-bb-deed-ribbons — Front house marks. Icon = label. Unearned hide. Still. Gold scarce. */
.bb-ribbons {
  position: absolute;
  left: 4%;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  animation: none !important;
  transition: none !important;
}
.bb-ribbons[hidden] { display: none !important; }
.bb-ribbon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 220, 0.78);
  flex: 0 0 auto;
  animation: none !important;
  transition: none !important;
  filter: none;
}
/* Gold scarce — SHOW UP only when present */
.bb-ribbon[data-deed="show_up"] {
  color: var(--lpf-yellow, #F4E409);
}
.bb-ribbon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bb-ribbon[data-glyph="bolt"] svg {
  fill: currentColor;
  stroke: none;
}
#brother-bb-card[data-chips="1"] .bb-ribbons,
#brother-bb-card[data-chips="2"] .bb-ribbons,
#brother-bb-card[data-sparse="1"] .bb-ribbons {
  bottom: 10px;
}
#brother-bb-card[data-chips="3"] .bb-ribbons,
#brother-bb-card[data-chips="4"] .bb-ribbons,
#brother-bb-card[data-chips="5"] .bb-ribbons {
  bottom: 8px;
}
/* 20261005-house-ribbons-heavy — House deeds: matte black pill · 1px scarce gold · icon only
   (word in title / THE MARKS). Bolts left → deeds right. Still after one earn beat. */
.bb-ribbon.bb-deed {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid rgba(242, 201, 76, 0.82);
  color: #F2C94C;
  box-shadow: none;
}
.bb-ribbon.bb-deed svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.bb-ribbon:not(.bb-deed) + .bb-ribbon.bb-deed {
  margin-left: 3px;
}
/* Earn flash — ONE beat ~220ms gold edge breath (ease-out) → dead still. No loop. */
.bb-ribbons .bb-ribbon.bb-deed.is-earn {
  animation: bb-deed-earn 220ms ease-out 1 both !important;
}
@keyframes bb-deed-earn {
  0%   { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0); border-color: rgba(242, 201, 76, 0.82); }
  45%  { box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.32); border-color: #F2C94C; }
  100% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0); border-color: rgba(242, 201, 76, 0.82); }
}
/* ANTI-CRAM — one calm band: ≥6px gaps, never wraps, never scrolls. */
#brother-bb-ribbons.bb-ribbons {
  flex-wrap: nowrap;
  overflow: visible;
  gap: 7px;
}
/* One hero house pill (~14% larger). Not when ELDER rim already carries the weight. */
.bb-ribbon.bb-deed.is-hero {
  width: 32px;
  height: 32px;
}
.bb-ribbon.bb-deed.is-hero svg {
  width: 20px;
  height: 20px;
}
#brother-bb-card[data-elder="1"] .bb-ribbon.bb-deed.is-hero {
  width: 28px;
  height: 28px;
}
/* +N overflow door → THE MARKS (all earned). Same pill height, dimmer gold. Rail end only. */
.bb-ribbon.bb-ribbon-more {
  width: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #0a0a0a;
  border: 1px solid rgba(242, 201, 76, 0.42);
  color: rgba(242, 201, 76, 0.72);
  font: 700 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.bb-ribbon.bb-ribbon-more:active { opacity: 0.8; }
/* ELDER newest → one ~220ms breath on the rim, then still. */
#brother-bb-well.is-elder.is-earn .lpf-man {
  animation: bb-elder-earn 220ms ease-out 1 both !important;
}
@keyframes bb-elder-earn {
  0%, 100% {
    filter:
      drop-shadow(0 0 1px #F2C94C)
      drop-shadow(0 0 3px #F2C94C)
      drop-shadow(0 0 5px rgba(242, 201, 76, 0.85))
      drop-shadow(0 0 14px rgba(242, 201, 76, 0.08))
      drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  }
  45% {
    filter:
      drop-shadow(0 0 1px #F2C94C)
      drop-shadow(0 0 3px #F2C94C)
      drop-shadow(0 0 6px rgba(242, 201, 76, 0.95))
      drop-shadow(0 0 14px rgba(242, 201, 76, 0.08))
      drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-ribbons .bb-ribbon.bb-deed.is-earn,
  #brother-bb-well.is-elder.is-earn .lpf-man { animation: none !important; }
}

/* ELDER — heavier gold rim on the photo window (~2× stroke weight), soft glow ≤8%, still. No pulse. */
#brother-bb-well.is-elder .lpf-man {
  filter:
    drop-shadow(0 0 1px #F2C94C)
    drop-shadow(0 0 3px #F2C94C)
    drop-shadow(0 0 5px rgba(242, 201, 76, 0.85))
    drop-shadow(0 0 14px rgba(242, 201, 76, 0.08))
    drop-shadow(8px 14px 16px rgba(0, 0, 0, 0.45));
  animation: none !important;
  transition: none !important;
}
#brother-bb-well.is-elder.is-window {
  box-shadow: 0 0 0 2px #F2C94C, 0 0 14px rgba(242, 201, 76, 0.08);
  animation: none !important;
}

/* EDIT: zero badge chrome from this pulse */
#profile-edit .bb-ribbons,
#profile-edit .bb-ribbon,
#profile-edit .bro-pip,
#profile-edit .bro-pips {
  display: none !important;
}

/* 20260930-bb-no-code — one face · Skill on Front · THE CODE off card */
.bb-front-lower {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 8px;
  color: #fff;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: #000;
}
.bb-skill {
  margin-top: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  background: #000;
}
.bb-skill-label {
  margin: 0;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  color: var(--lpf-yellow, #F4E409);
  letter-spacing: 0.06em;
  font-size: 15px;
}
.bb-skill-value {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.bb-skill-self {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-skill-self button {
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.06em;
}
#brother-bb-skill-add,
#brother-bb-skill-edit-btn,
#brother-bb-skill-save {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.7);
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}
#brother-bb-skill-save {
  border-color: var(--lpf-yellow, #F4E409);
  color: var(--lpf-yellow, #F4E409);
}
.bb-skill-form-lab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
#brother-bb-skill-input {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.45);
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}
.bb-skill-helper {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
}

.bb-skill-fail {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 200, 120, 0.95);
}


/* 20260930-bb-card-scroll — kill Back/flip chrome */
#brother-bb-flip,
#brother-bb-face-front,
#brother-bb-back,
.bb-flip-btn,
.bb-face-btn { display: none !important; }

/* 20261007-table-chips-canon — baseball ADD/EDIT canon picker */
#brother-bb-skill-form .skill-canon-pick { margin: 6px 0 10px; }
#brother-bb-skill-form .skill-canon-chip {
  font-size: 12px;
  padding: 7px 10px;
}
#brother-bb-skill-input[type="hidden"] { display: none !important; }

/* 20261008-plane-wind-chips — SKILL I CAN LEND reads as a plain text note, never a pill/box.
   Exact canon labels render as small canon chips (AT YOUR TABLE look). */
.bb-skill {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 6px 2px 4px !important;
  box-shadow: none !important;
}
.bb-skill-value {
  font-weight: 400;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}
.bb-skill-value--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.bb-skill-chip {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0a0a0a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: "LPF Bebas", "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 400;
}

/* 20261008-card-frame-fit — the art frame (well: storm pack / photo window / die-cut) always sits
   WHOLE inside the card: man-right → frame right edge = card right edge; man-left → frame left edge =
   card left edge. Sized from the card box only (never from chip count / data-chips / data-sparse), so it
   holds if plain-text fact lines come back under the name plate. Card gutter = frame gutter.
   20261008-quiet-shame — Gabriel (data-fit-exempt, keyed on member id) is never re-fit: his card keeps the
   pre-frame-fit rules exactly. */
#brother-bb-card.lpf-card:not([data-fit-exempt="1"]) .lpf-well#brother-bb-well {
  top: 1.5%;
  width: 72%;
  height: 86%;
  max-width: 100%;
}
#brother-bb-card.lpf-card[data-layout="man-right"]:not([data-fit-exempt="1"]) .lpf-well#brother-bb-well {
  right: 0;
  left: auto;
}
#brother-bb-card.lpf-card:not([data-layout="man-right"]):not([data-fit-exempt="1"]) .lpf-well#brother-bb-well {
  left: 0;
  right: auto;
}
#brother-bb-card.lpf-card[data-zach-fit="1"]:not([data-fit-exempt="1"]) .lpf-well#brother-bb-well {
  top: 5%;
  width: 48%;
  height: 72%;
}
