/* 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 .panel--standings {
  width: 100%;
  max-width: 560px;
}

.page-bughouse-scene .panel--standings .panel__list {
  width: 100%;
}

.page-bughouse-scene .standings-row {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border-radius: 30px;
  color: #000;
  box-sizing: border-box;
}

.page-bughouse-scene .standings-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.94);
}

.page-bughouse-scene .standings-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.78);
}

.page-bughouse-scene .standings-row__rank {
  grid-column: 1;
  text-align: center;
  justify-self: center;
}

.page-bughouse-scene .standings-row__team {
  grid-column: 2;
  text-align: left;
  justify-self: stretch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.page-bughouse-scene .standings-row__points {
  grid-column: 3;
  width: 72px;
  text-align: center;
  justify-self: center;
}

.page-bughouse-scene .standings-row--tb2 {
  grid-template-columns: 48px 1fr 52px 56px;
}

.page-bughouse-scene .standings-row__tb2 {
  grid-column: 4;
  width: 56px;
  text-align: center;
  justify-self: center;
}

.page-bughouse-standings .bughouse-scene.panel--standings,
.page-bughouse-standings .panel--standings {
  width: auto;
  max-width: 100%;
  align-items: center;
}

.page-bughouse-standings .panel--standings .panel__list {
  width: auto;
  max-width: 100%;
}

.page-bughouse-standings .standings-row {
  grid-template-columns: 56px auto 80px;
  column-gap: 20px;
  min-height: 60px;
  height: auto;
  padding: 12px 28px;
  box-sizing: border-box;
}

.page-bughouse-standings .standings-row--tb2 {
  grid-template-columns: 56px auto 64px 72px;
}

.page-bughouse-standings .standings-row__team {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
