/* Signal Duel — challenge list and member picker. Canvas chrome is signal-catcher.css. */

.duel-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .duel-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .duel-play-wrap {
    grid-column: 1 / -1;
  }
}

.duel-panel .panel-title {
  margin-bottom: 0.35rem;
}

.duel-search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.duel-results,
.duel-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.duel-pick {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 10px;
  background: rgba(57, 255, 20, 0.06);
  color: var(--headings, #e8ffe4);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.duel-pick:hover,
.duel-pick:focus-visible {
  border-color: rgba(57, 255, 20, 0.75);
  outline: none;
}

.duel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 12px;
  background: rgba(8, 16, 8, 0.72);
}

.duel-row__main {
  min-width: 0;
  flex: 1 1 10rem;
}

.duel-row__who,
.duel-row__state,
.duel-row__score {
  margin: 0;
}

.duel-row__who {
  color: var(--headings, #e8ffe4);
  font-weight: 650;
}

.duel-row__state,
.duel-row__score {
  color: #9dcea0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.duel-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.duel-pick-empty {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
}

[data-games-page="signal-duel"] .game-shell {
  max-width: 480px;
}

[data-duel-stage][hidden] {
  display: none !important;
}

[data-hub-sd-play][hidden],
[data-hub-sd-meta][hidden],
[data-hub-sd-soon][hidden] {
  display: none !important;
}
