/* Bracha Arcade hub - the landing page: a card per game, then the high score boards. */

.ba-hub {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  text-align: center;
}

.ba-hub-title {
  font-size: 36px;
  font-weight: 700;
  color: #19100c;
  margin: 0 0 8px;
}

.ba-hub-subtitle {
  color: #6f6b6b;
  font-size: 16px;
  margin: 0 0 32px;
}

.ba-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Card: the owner-supplied image (assets/images/cards/{slug}.jpg, set per card as --ba-card-bg)
   under a dark scrim so the white text always reads; falls back to a plain dark gradient when
   no image has been added yet. */
.ba-hub-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(25, 16, 12, 0.35), rgba(25, 16, 12, 0.7)),
    var(--ba-card-bg, none) center / cover no-repeat,
    linear-gradient(135deg, #4a2f1f, #19100c);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 24px 18px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ba-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.ba-hub-card-body {
  display: block;
  text-align: center;
}

.ba-hub-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.ba-hub-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ba-hub-card-score {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  color: #fff;
}

.ba-hub-card-score strong {
  color: #ffb199;
}

.ba-score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.ba-hub-card-score .fi,
.ba-board .fi {
  border-radius: 2px;
  flex-shrink: 0;
}

/* High score boards */
.ba-boards {
  margin-top: 48px;
}

.ba-boards h2 {
  font-size: 28px;
  color: #19100c;
  margin: 0 0 16px;
}

.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ba-tab {
  cursor: pointer;
  background: #fff;
  border: 2px solid #e0e0e0;
  color: #19100c;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  min-height: 40px;
  transition: border-color 0.2s, background-color 0.2s;
}

.ba-tab.is-active {
  border-color: #f3724b;
  background: #fdece6;
}

.ba-board {
  display: none;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  text-align: left;
}

.ba-board.is-active {
  display: block;
}

.ba-board .ba-score-name {
  flex: 1;
  font-weight: 600;
  color: #19100c;
}

@media (max-width: 480px) {
  .ba-hub-title {
    font-size: 28px;
  }
}
