/* Home module: faction chips + saber-type tiles. */

.bjs-finder {
  padding-bottom: 96px;
  border-bottom: 1px solid var(--home-line);
}

.bjs-finder__factions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(24px, 7vw, 112px);
}

.bjs-fchip {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--home-line);
  border-top-width: 3px;
  background: var(--home-panel);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.bjs-fchip:hover { transform: translateY(-3px); }
.bjs-fchip--light { border-top-color: var(--home-cyan); }
.bjs-fchip--dark { border-top-color: var(--home-red); }
.bjs-fchip--neutral { border-top-color: var(--home-amber); }

.bjs-fchip__tag { color: var(--home-muted); font: 650 10px/1 Inter, sans-serif; }
.bjs-fchip__name { margin-top: 10px; color: var(--home-copy); font: 600 clamp(30px, 3vw, 44px)/.95 'Barlow Condensed', sans-serif; text-transform: uppercase; }

.bjs-finder__types {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 0 clamp(24px, 7vw, 112px);
}

.bjs-tile {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--home-line);
  background: var(--home-panel);
  text-decoration: none;
  transition: border-color .2s ease;
}

.bjs-tile:hover { border-color: #3d4854; }

.bjs-tile__icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--home-muted);
  border-radius: 2px;
  transition: border-color .2s ease;
}

.bjs-tile:hover .bjs-tile__icon { border-color: var(--home-cyan); }

.bjs-tile__icon--staff-saber { width: 44px; border-style: double; }
.bjs-tile__icon--crossguard { border-width: 2px; }
.bjs-tile__icon--crossguard::before,
.bjs-tile__icon--crossguard::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--home-muted);
}
.bjs-tile__icon--crossguard::before { left: -12px; }
.bjs-tile__icon--crossguard::after { right: -12px; }
.bjs-tile__icon--curved-hilt { border-radius: 50% 2px 50% 2px; }
.bjs-tile__icon--twin-blade { background: linear-gradient(90deg, transparent 44%, var(--home-muted) 44%, var(--home-muted) 56%, transparent 56%); }
.bjs-tile__icon--short-combat { width: 24px; height: 24px; }

.bjs-tile__name { color: var(--home-copy); font: 650 11px/1.2 Inter, sans-serif; text-align: center; text-transform: uppercase; }

@media (max-width: 900px) {
  .bjs-finder__factions { grid-template-columns: 1fr; }
  .bjs-fchip { min-height: 130px; }
  .bjs-finder__types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bjs-finder { padding-bottom: 66px; }
  .bjs-finder__factions, .bjs-finder__types { padding-inline: 18px; }
  .bjs-finder__types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
