/* Funk's Borderland Trading Hub page */
html body.funk-page,
html body.funk-page .page-shell,
html body.funk-page main {
  background: #090704 !important;
}

html body.funk-page {
  color: #fff7de;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

html body.funk-page .global-bg-glow,
html body.funk-page .noise,
html body.funk-page .orb {
  display: none !important;
}

html body.funk-page header.site-header {
  background:
    linear-gradient(90deg, rgba(7, 5, 3, 0.96), rgba(42, 25, 5, 0.94), rgba(7, 5, 3, 0.96)) !important;
  border-bottom: 2px solid rgba(255, 176, 0, 0.32) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(16px) !important;
}

html body.funk-page footer.site-footer {
  background:
    linear-gradient(180deg, #0c0804 0%, #050403 100%) !important;
  border-top: 2px solid rgba(255, 176, 0, 0.20) !important;
}

html body.funk-page .site-logo {
  background: linear-gradient(135deg, #fff06a 0%, #ffad00 48%, #ff5b00 100%) !important;
  color: #120b00 !important;
  box-shadow: 0 14px 32px rgba(255, 127, 0, 0.28) !important;
}

html body.funk-page .nav-link {
  color: #d8d3bf !important;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html body.funk-page .nav-link:hover,
html body.funk-page .nav-link-active {
  color: #111006 !important;
  background: linear-gradient(135deg, #fff06a, #ffad00 56%, #ff6400) !important;
  border-color: rgba(255, 229, 94, 0.28) !important;
}

html body.funk-page .nav-cta {
  color: #071114 !important;
  background: linear-gradient(135deg, #39f1ff, #00c8ff) !important;
  box-shadow: 0 14px 30px rgba(0, 200, 255, 0.26) !important;
}

.fbh-hero {
  position: relative;
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: stretch;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 209, 255, 0.20), transparent 28%),
    radial-gradient(circle at 12% 24%, rgba(255, 181, 0, 0.18), transparent 28%),
    linear-gradient(180deg, #161006 0%, #080604 100%);
}

.fbh-hero::before,
.fbh-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.fbh-hero::before {
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(120deg, transparent 0 46%, rgba(255, 213, 48, 0.95) 46% 50%, transparent 50% 100%),
    repeating-linear-gradient(105deg, rgba(0, 0, 0, 0.85) 0 12px, rgba(255, 175, 0, 0.85) 12px 24px);
  background-size: 460px 100%, 160px 160px;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, transparent 34%, transparent 100%);
}

.fbh-hero::after {
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 3px solid rgba(255, 178, 0, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 24px rgba(0, 0, 0, 0.22),
    0 0 80px rgba(0, 209, 255, 0.18);
}

.fbh-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fbh-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.16) contrast(1.12) brightness(0.36);
  transform: scale(1.04);
}

.fbh-hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 176, 0, 0.30), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(0, 210, 255, 0.22), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
}

.fbh-hero-ink {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 2, 1, 0.86) 0%, rgba(3, 2, 1, 0.44) 44%, rgba(3, 2, 1, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.52) 54%, #090704 100%);
}

.fbh-hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding-top: 82px;
  padding-bottom: 76px;
}

.fbh-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 2px solid rgba(255, 220, 73, 0.28);
  background: rgba(12, 9, 4, 0.72);
  color: #fff5bd;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
  transform: rotate(-1deg);
}

.fbh-kicker span {
  padding: 7px 10px;
  color: #151005;
  background: linear-gradient(135deg, #fff16a, #ffad00);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}

.fbh-hero-copy h1 {
  max-width: 860px;
  margin: 28px 0 18px;
  color: #fff2b7;
  font-family: "Bangers", "Impact", fantasy;
  font-size: clamp(4rem, 9vw, 8.8rem);
  line-height: 0.83;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 #080604,
    8px 8px 0 rgba(0, 0, 0, 0.42),
    0 0 34px rgba(255, 174, 0, 0.20);
  -webkit-text-stroke: 1px rgba(14, 10, 3, 0.76);
}

.fbh-hero-copy h1 span {
  display: block;
  color: #ffad00;
  text-shadow:
    4px 4px 0 #160a00,
    0 0 30px rgba(255, 85, 0, 0.30);
}

.fbh-lead {
  max-width: 790px;
  margin: 0;
  color: #eee5c9;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.86;
}

.fbh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fbh-btn-primary,
.fbh-btn-secondary {
  position: relative;
  min-height: 54px;
  border-radius: 6px;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 10px 50%);
}

.fbh-btn-primary {
  color: #151006;
  background: linear-gradient(135deg, #fff269 0%, #ffb000 45%, #ff5c00 100%);
  border-color: rgba(255, 231, 93, 0.38);
  box-shadow:
    0 18px 36px rgba(255, 111, 0, 0.24),
    5px 5px 0 rgba(0, 0, 0, 0.36);
}

.fbh-btn-secondary {
  color: #dffbff;
  background: rgba(0, 209, 255, 0.08);
  border-color: rgba(0, 209, 255, 0.36);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.30);
}

.fbh-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.fbh-signal-row div {
  padding: 15px;
  border: 2px solid rgba(255, 220, 73, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 174, 0, 0.12), rgba(0, 209, 255, 0.06)),
    rgba(8, 6, 3, 0.72);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.24);
}

.fbh-signal-row strong,
.fbh-signal-row span {
  display: block;
}

.fbh-signal-row strong {
  color: #ffcd2f;
  font-size: 1.18rem;
  line-height: 1;
  text-transform: uppercase;
}

.fbh-signal-row span {
  margin-top: 6px;
  color: #d9d1b7;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
}

.fbh-sigil-card {
  position: relative;
  padding: 20px;
  border: 3px solid rgba(255, 192, 31, 0.30);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 174, 0, 0.18), transparent 28%),
    linear-gradient(160deg, rgba(26, 16, 4, 0.90), rgba(8, 6, 4, 0.78));
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.38),
    0 26px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(1.5deg);
  transition: transform 0.2s ease;
}

.fbh-sigil-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px dashed rgba(255, 221, 78, 0.22);
}

.fbh-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fbh-card-top span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 42px;
  color: #160e02;
  background: linear-gradient(135deg, #fff16a, #ffad00);
  font-size: 1.4rem;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.fbh-card-top small {
  color: #f4df9d;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  text-align: right;
}

.fbh-logo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 330px;
  margin: 6px 0 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 209, 255, 0.18), transparent 43%),
    radial-gradient(circle, rgba(255, 176, 0, 0.20), transparent 58%);
}

.fbh-logo-wrap::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 183, 0, 0.18);
  box-shadow:
    inset 0 0 28px rgba(0, 209, 255, 0.12),
    0 0 40px rgba(255, 176, 0, 0.18);
}

.fbh-logo-wrap img {
  position: relative;
  z-index: 1;
  width: min(78%, 330px);
  height: auto;
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.50))
    drop-shadow(0 0 18px rgba(255, 131, 0, 0.24));
}

.fbh-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fbh-card-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 222, 82, 0.16);
  background: rgba(0, 0, 0, 0.24);
}

.fbh-card-grid span {
  display: block;
  color: #00d9ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.fbh-card-grid strong {
  display: block;
  margin-top: 6px;
  color: #fff4c5;
  font-size: 1.16rem;
  line-height: 1;
  text-transform: uppercase;
}

.fbh-section {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 174, 0, 0.10), transparent 26%),
    linear-gradient(180deg, #090704, #100b05 48%, #090704);
}

.fbh-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    radial-gradient(circle, rgba(255, 225, 80, 0.65) 0 1px, transparent 1.5px),
    linear-gradient(135deg, transparent 0 48%, rgba(0, 209, 255, 0.7) 48% 49%, transparent 49%);
  background-size: 18px 18px, 340px 340px;
}

.fbh-section-head {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 24px;
}

.fbh-section-head span,
.fbh-team-copy > span,
.fbh-bounty-card span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #101006;
  background: linear-gradient(135deg, #fff16a, #ffad00);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.26);
}

.fbh-section-head h2,
.fbh-team-copy h2,
.fbh-bounty-card h2 {
  margin: 16px 0 10px;
  color: #fff1b2;
  font-family: "Bangers", "Impact", fantasy;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.58);
}

.fbh-section-head p,
.fbh-terminal-card p,
.fbh-team-copy p,
.fbh-bounty-card p {
  margin: 0;
  color: #ded6bd;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.76;
}

.fbh-terminal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fbh-terminal-card {
  min-height: 260px;
  padding: 22px;
  border: 3px solid rgba(255, 219, 66, 0.18);
  background:
    linear-gradient(150deg, rgba(255, 174, 0, 0.10), transparent 40%),
    rgba(12, 9, 5, 0.84);
  box-shadow:
    10px 10px 0 rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.fbh-card-number {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 44px;
  color: #081217;
  background: linear-gradient(135deg, #39f1ff, #00c8ff);
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
}

.fbh-terminal-card h3 {
  margin: 28px 0 12px;
  color: #fff2b8;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.fbh-team-section {
  padding-top: 50px;
}

.fbh-team-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.fbh-team-art {
  position: relative;
  padding: 12px;
  border: 3px solid rgba(0, 209, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.14), rgba(255, 174, 0, 0.08)),
    #0a0704;
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.38),
    0 28px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
}

.fbh-team-art::after {
  content: "TEAM";
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 8px 12px;
  color: #100d04;
  background: linear-gradient(135deg, #fff16a, #ffad00);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.38);
}

.fbh-team-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.fbh-team-copy {
  padding: 26px;
  border: 3px solid rgba(255, 220, 73, 0.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 209, 255, 0.14), transparent 30%),
    rgba(11, 8, 4, 0.78);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.30);
}

.fbh-chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fbh-chip-stack span {
  padding: 10px 12px;
  color: #f8f1d2;
  border: 1px solid rgba(0, 209, 255, 0.24);
  background: rgba(0, 209, 255, 0.08);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fbh-final {
  padding: 26px 0 82px;
  background:
    linear-gradient(180deg, #090704, #050403);
}

.fbh-bounty-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 195, 35, 0.24);
  background:
    radial-gradient(circle at 85% 22%, rgba(0, 209, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 174, 0, 0.16), rgba(10, 8, 4, 0.92) 44%);
  box-shadow:
    12px 12px 0 rgba(0, 0, 0, 0.34),
    0 24px 70px rgba(0, 0, 0, 0.34);
}

.fbh-bounty-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -35px auto;
  width: 280px;
  height: 120px;
  opacity: 0.18;
  transform: rotate(-10deg);
  background: repeating-linear-gradient(110deg, #000 0 18px, #ffb000 18px 36px);
}

.fbh-bounty-card > * {
  position: relative;
  z-index: 1;
}

.fbh-bounty-card p {
  max-width: 680px;
}

@media (max-width: 1120px) {
  .fbh-hero-grid,
  .fbh-team-grid,
  .fbh-terminal-grid {
    grid-template-columns: 1fr;
  }

  .fbh-sigil-card,
  .fbh-team-art {
    transform: none;
  }
}

@media (max-width: 860px) {
  html body.funk-page .nav {
    background:
      linear-gradient(180deg, rgba(25, 15, 5, 0.98), rgba(9, 7, 4, 0.98)) !important;
    border-color: rgba(255, 176, 0, 0.24) !important;
  }

  .fbh-hero {
    min-height: auto;
  }

  .fbh-hero-grid {
    padding-top: 58px;
    padding-bottom: 52px;
  }

  .fbh-hero-copy h1 {
    font-size: clamp(3.2rem, 18vw, 5.8rem);
  }

  .fbh-kicker {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .fbh-signal-row,
  .fbh-card-grid {
    grid-template-columns: 1fr;
  }

  .fbh-actions,
  .fbh-bounty-card {
    align-items: stretch;
  }

  .fbh-actions,
  .fbh-final .btn,
  .fbh-bounty-card {
    width: 100%;
  }

  .fbh-actions,
  .fbh-bounty-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fbh-logo-wrap {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .fbh-hero-grid {
    width: min(100% - 20px, var(--container));
  }

  .fbh-hero-copy h1 {
    text-shadow:
      3px 3px 0 #080604,
      6px 6px 0 rgba(0, 0, 0, 0.42);
  }

  .fbh-sigil-card,
  .fbh-terminal-card,
  .fbh-team-copy,
  .fbh-bounty-card {
    padding: 18px;
    border-width: 2px;
  }

  .fbh-section {
    padding: 54px 0;
  }

  .fbh-final {
    padding-bottom: 58px;
  }
}
