/* Fjalla pill content on public /bughouse pages (nav from /styles.css) */

.page-bughouse-scene {
  --font-family: 'Fjalla One', sans-serif;
  --player-size: 22px;
  --player-line-height: 24px;
  --player-letter-spacing: -0.03em;
  --accent: #1a9ddd;
  --label-blue: #1f78a9;
  --label-size: 28px;
  --label-line-height: 28px;
}

.page-bughouse-scene .bughouse-main {
  max-width: 720px;
}

.page-bughouse-scene .bughouse-scene {
  width: 100%;
  padding: 0;
}

.page-bughouse-scene .type-player {
  font-family: var(--font-family);
  font-size: var(--player-size);
  line-height: var(--player-line-height);
  letter-spacing: var(--player-letter-spacing);
  text-transform: uppercase;
}

.page-bughouse-scene .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.page-bughouse-scene .panel__heading {
  margin-bottom: 16px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: var(--label-size);
  line-height: var(--label-line-height);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--label-blue);
  white-space: nowrap;
}

.page-bughouse-scene .panel__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.page-bughouse-scene .panel__empty {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px;
  border-radius: 30px;
  background: #5a5f63;
  color: rgba(255, 255, 255, 0.75);
}

.page-bughouse-scene .results-toolbar {
  width: 100%;
  margin-bottom: 12px;
}

.page-bughouse-scene .round-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.page-bughouse-scene .round-picker__label {
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.page-bughouse-scene .round-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-bughouse-scene .round-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  min-width: 44px;
  padding: 10px 18px;
  font-family: var(--font-family);
  font-size: 22px;
  line-height: 24px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--label-blue);
  background: #fff;
  cursor: pointer;
}

.page-bughouse-scene .round-btn:hover {
  filter: brightness(0.95);
}

.page-bughouse-scene .round-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.page-bughouse-scene .panel__status {
  width: 100%;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
  text-align: left;
  font-family: var(--font-family);
  text-transform: none;
}

.page-bughouse-scene .load-error {
  color: #f88;
  padding: 1rem 0;
  font-family: sans-serif;
  font-size: 16px;
}
.page-bughouse-scene .pairing-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  column-gap: 10px;
  width: 100%;
}

@media (min-width: 480px) {
  .page-bughouse-scene .pairing-row {
    grid-template-columns: 1fr 120px 1fr;
    column-gap: 14px;
  }
}

.page-bughouse-scene .pairing-row__team {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 30px;
  background: #fff;
  color: #000;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 22px;
}

@media (min-width: 480px) {
  .page-bughouse-scene .pairing-row__team {
    min-height: 60px;
    padding: 10px 18px;
    font-size: var(--player-size);
    line-height: var(--player-line-height);
  }
}

.page-bughouse-scene .pairing-row__team--winner {
  background: var(--accent);
  color: #fff;
}

.page-bughouse-scene .pairing-row__team--pending {
  background: #5a5f63;
  color: transparent;
}

.page-bughouse-scene .pairing-row__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-bughouse-scene .pairing-row__result {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 120px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 20px;
  line-height: 22px;
  letter-spacing: -0.03em;
}

.page-bughouse-scene .pairing-row__result--pending {
  background: #5a5f63;
  color: transparent;
}
