:root {
  --bg: #091425;
  --panel: #10233a;
  --panel-soft: #142a44;
  --line: #274666;
  --text: #eaf1fb;
  --muted: #9fb2c8;
  --brand: #1ca3ff;
  --accent: #19c59f;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(28,163,255,0.2), transparent),
    radial-gradient(800px 380px at 95% 0%, rgba(25,197,159,0.16), transparent),
    linear-gradient(180deg, #091425, #070f1b);
}

a { color: inherit; text-decoration: none; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.back-btn,
.primary-btn,
.ghost-btn,
.warn-btn {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--text);
  background: var(--panel-soft);
  padding: 0.52rem 0.85rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, #1382cd, var(--brand), var(--accent));
  font-weight: 600;
}

.warn-btn {
  border-color: rgba(239,68,68,0.45);
  background: rgba(239,68,68,0.1);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.warn-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.grid.single-column {
  grid-template-columns: 1fr;
}

.tournament-top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.top-panel-tab.active {
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.2);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.22), rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.14));
}

.card {
  background: linear-gradient(165deg, rgba(15,33,55,0.96), rgba(9,21,38,0.96));
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.95rem;
}

.card h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

label {
  display: block;
  font-size: 0.77rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.format-mode-hint {
  margin-top: 0.32rem;
  font-size: 0.75rem;
  color: #9fb8d1;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.48rem 0.55rem;
  background: rgba(8,19,34,0.9);
  color: var(--text);
  font-size: 0.87rem;
}

input[type="checkbox"] {
  width: auto;
  padding: 0;
}

.spectator-toggle-row {
  grid-template-columns: minmax(0, 1fr);
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.86rem;
  color: #d7e6f6;
  line-height: 1.35;
}

.checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

/* Normalize select/number browser chrome */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23d4e6f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.95rem;
  padding-right: 2rem;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-directory-pick {
  min-height: 46px;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.btn-directory-pick:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-directory-pick-directory {
  border: 1px solid rgba(26, 200, 164, 0.7);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(26, 200, 164, 0.92));
  color: #f8fafc;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.35);
}

.btn-directory-pick-directory:hover {
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.45);
}

.btn-directory-pick-favorites {
  border: 1px solid rgba(245, 158, 11, 0.78);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(245, 158, 11, 0.94), rgba(250, 204, 21, 0.9));
  color: #111827;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.32);
}

.btn-directory-pick-favorites:hover {
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.42);
}

.btn-directory-pick-adhoc {
  border: 1px solid rgba(45, 212, 191, 0.7);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(20, 184, 166, 0.92));
  color: #ecfeff;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}

.btn-directory-pick-adhoc:hover {
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.38);
}

.tournament-directory-open-actions .btn-directory-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.6);
  transform: none;
}

.status {
  min-height: 1.1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.status.error { color: #fca5a5; }
.status.ok { color: #86efac; }

.knockout-stage-settings {
  margin: 0.35rem 0 0.6rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 0.75rem;
  background: linear-gradient(165deg, rgba(7, 25, 45, 0.78), rgba(10, 34, 52, 0.74));
}

.knockout-stage-title {
  margin: 0 0 0.45rem;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ae6f0;
}

.board-keypad-assignments {
  margin: 0.55rem 0 0.7rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border: 1px solid rgba(28, 163, 255, 0.32);
  border-radius: 0.75rem;
  background: linear-gradient(165deg, rgba(7, 26, 45, 0.72), rgba(8, 30, 52, 0.68));
}

.board-keypad-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.board-keypad-head h3 {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #d2ecff;
}

.board-keypad-head .ghost-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  min-height: 2rem;
}

.board-keypad-assignments p {
  margin: 0.35rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.board-keypad-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.board-keypad-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(39, 70, 102, 0.65);
  border-radius: 0.6rem;
  background: rgba(4, 18, 33, 0.72);
}

.board-keypad-row-main {
  min-width: 0;
}

.board-keypad-row-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e6f2ff;
}

.board-keypad-row-sub {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
}

.board-keypad-row select {
  width: 100%;
  margin-top: 0.1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(39,70,102,0.7);
  text-align: left;
  padding: 0.45rem 0.35rem;
}

.table th {
  color: #bdd0e4;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pairings {
  display: grid;
  gap: 0.6rem;
}

.pairing-card {
  border: 1px solid rgba(39,70,102,0.8);
  border-radius: 0.75rem;
  padding: 0.65rem;
  background: rgba(8,19,34,0.75);
}

.pairing-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.pairing-title {
  font-size: 0.86rem;
  font-weight: 600;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  color: #c2d6ea;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #bee3ff;
  font-size: 0.82rem;
}

.players-line {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.result-board {
  border: 1px solid rgba(39,70,102,0.7);
  border-radius: 0.62rem;
  background: rgba(16,35,58,0.45);
  padding: 0.45rem;
  margin-bottom: 0.55rem;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.44rem;
  border-radius: 0.5rem;
}

.result-row + .result-row {
  margin-top: 0.25rem;
}

.result-name {
  font-size: 0.88rem;
  color: #dbe9f8;
}

.result-score {
  min-width: 1.8rem;
  text-align: right;
  font-size: 1.08rem;
  font-weight: 700;
  color: #eaf2fb;
}

.winner-pill {
  border-radius: 999px;
  padding: 0.1rem 0.44rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #06290f;
  background: linear-gradient(135deg, #86efac, #34d399);
}

.winner-pill.placeholder {
  visibility: hidden;
}

.result-row.winner {
  border: 1px solid rgba(134,239,172,0.45);
  background: linear-gradient(90deg, rgba(22,163,74,0.24), rgba(16,185,129,0.08));
}

.result-row.winner .result-name,
.result-row.winner .result-score {
  color: #dcfce7;
  font-weight: 700;
}

.result-meta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #9fb8d1;
}

.pairing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.inline-input {
  max-width: 90px;
}

.selected-list {
  border: 1px solid rgba(39,70,102,0.7);
  border-radius: 0.72rem;
  padding: 0.55rem;
  min-height: 56px;
  background: rgba(8,19,34,0.62);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tournament-row {
  width: 100%;
  border: 1px solid rgba(39,70,102,0.75);
  border-radius: 0.68rem;
  background: rgba(8,19,34,0.72);
  color: var(--text);
  padding: 0.58rem 0.62rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.tournament-row + .tournament-row {
  margin-top: 0.45rem;
}

.tournament-row:hover {
  border-color: #3b5d84;
  background: rgba(16,35,58,0.78);
}

.tournament-row.active {
  border-color: rgba(56, 189, 248, 0.68);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.28), rgba(6, 182, 212, 0.22), rgba(16, 185, 129, 0.16));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.2);
}

.tournament-row-name {
  font-weight: 600;
  color: #e4effa;
}

.tournament-row-name-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.active-tournament-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d7f3ff;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.42), rgba(6, 182, 212, 0.25));
}

.tournament-row-select-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.05rem;
}

.tournament-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 360px;
  min-width: 0;
}

.tournament-row-meta {
  font-size: 0.78rem;
  color: #a9bfd8;
  white-space: nowrap;
}

.tournament-inline-keypad-wrap {
  margin-top: 0.15rem;
  display: block;
  width: 100%;
  flex: 1 1 100%;
}

.tournament-inline-keypad-wrap .board-keypad-assignments {
  margin: 0;
}

.tournament-row-actions {
  display: grid;
  gap: 0.42rem;
  justify-items: stretch;
  flex: 1 1 520px;
  min-width: 360px;
}

.tournament-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.42rem;
}

.tournament-action-group-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(79,108,139,0.64);
  background: rgba(9, 24, 40, 0.82);
  color: #9fb8d1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tournament-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.58rem;
  border: 1px solid rgba(79,108,139,0.82);
  background: rgba(18,38,60,0.92);
  color: #d7e8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.icon-btn-wide {
  width: auto;
  min-width: 8.6rem;
  padding: 0 0.55rem;
  gap: 0.35rem;
  justify-content: flex-start;
}

.icon-btn .btn-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.icon-btn-start:hover {
  border-color: rgba(56,189,248,0.75);
  background: rgba(2,132,199,0.26);
}

.icon-btn-next:hover {
  border-color: rgba(45,212,191,0.75);
  background: rgba(13,148,136,0.26);
}

@keyframes btnAttentionFade {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}

.icon-btn-next.attention {
  border-color: rgba(45,212,191,0.9);
  background: rgba(13,148,136,0.3);
  animation: btnAttentionFade 1.1s ease-in-out infinite;
}

.icon-btn-next.attention:hover {
  opacity: 1;
  animation-play-state: paused;
}

.icon-btn-pin {
  font-size: 1.02rem;
}

.icon-btn-pin:hover {
  border-color: rgba(250,204,21,0.78);
  background: rgba(161,98,7,0.24);
}

.icon-btn-pin.pinned {
  border-color: rgba(250,204,21,0.8);
  background: rgba(234,179,8,0.24);
  color: #fef3c7;
}

.icon-btn-select {
  min-width: 7.6rem;
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(10, 32, 54, 0.9);
}

.icon-btn-select:hover {
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(11, 58, 96, 0.32);
}

.icon-btn-select.selected {
  border-color: rgba(16, 185, 129, 0.78);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.4), rgba(22, 163, 74, 0.28));
  color: #d1fae5;
}

.icon-btn-delete:hover {
  border-color: rgba(248,113,113,0.78);
  background: rgba(185,28,28,0.26);
}

.icon-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  animation: none !important;
}

.icon-btn[disabled]:hover {
  border-color: rgba(79,108,139,0.82);
  background: rgba(18,38,60,0.92);
}

.status-pill {
  display: inline-block;
  padding: 0.08rem 0.44rem;
  border-radius: 999px;
  border: 1px solid rgba(159,178,200,0.4);
  color: #cdddf0;
}

.status-pill.running {
  color: #dcfce7;
  border-color: rgba(74,222,128,0.55);
  background: rgba(22,163,74,0.22);
}

.status-pill.archived {
  color: #fecaca;
  border-color: rgba(248,113,113,0.55);
  background: rgba(185,28,28,0.18);
}

.selected-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #2f4b6d;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  color: #d4e6f7;
  background: rgba(17,41,67,0.9);
}

.selected-item button {
  border: 0;
  background: transparent;
  color: #d4e6f7;
  cursor: pointer;
  padding: 0;
  font-size: 0.78rem;
}

.pairing-mode-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pairing-mode-wrap span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pairing-mode-wrap select {
  min-width: 210px;
}

.tournament-players-list {
  border: 1px solid rgba(39,70,102,0.72);
  border-radius: 0.72rem;
  background: rgba(8,19,34,0.62);
  min-height: 56px;
  padding: 0.45rem;
  display: grid;
  gap: 0.42rem;
}

.round-one-preview-list {
  margin-top: 0.38rem;
  border: 1px solid rgba(39,70,102,0.7);
  border-radius: 0.72rem;
  background: rgba(8,19,34,0.62);
  min-height: 52px;
  padding: 0.42rem;
  display: grid;
  gap: 0.35rem;
}

.round-one-preview-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(47,75,109,0.82);
  border-radius: 0.62rem;
  background: rgba(17,41,67,0.78);
  padding: 0.34rem 0.46rem;
  font-size: 0.8rem;
}

.round-one-preview-row .versus {
  color: #9fb2c8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tournament-player-row {
  display: grid;
  grid-template-columns: 1.4rem auto 1fr auto auto;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid rgba(47,75,109,0.92);
  border-radius: 0.64rem;
  background: rgba(17,41,67,0.86);
  padding: 0.42rem 0.5rem;
}

.tournament-player-row.dragging {
  opacity: 0.45;
}

.tournament-player-row.drop-target {
  border-color: rgba(56,189,248,0.9);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.22);
}

.drag-handle {
  color: #9fb8d1;
  font-size: 1rem;
  cursor: grab;
  user-select: none;
}

.seed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.48);
  background: rgba(8,145,178,0.14);
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 700;
}

.tournament-player-row .player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-player-row .player-source {
  color: #9fb2c8;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.remove-player-btn {
  padding: 0.36rem 0.58rem;
  font-size: 0.76rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 7, 14, 0.72);
  backdrop-filter: blur(2px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: min(940px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.95rem;
  background: linear-gradient(165deg, rgba(15,33,55,0.98), rgba(9,21,38,0.98));
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7rem;
}

.modal-pagination {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }

  .board-keypad-list {
    grid-template-columns: 1fr;
  }

  .tournament-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tournament-row-actions {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .tournament-action-group {
    align-items: flex-start;
  }

  .tournament-action-buttons {
    justify-content: flex-start;
  }

  .icon-btn {
    height: 2.35rem;
  }

  .icon-btn-wide {
    min-width: 9.1rem;
  }
}

@media (max-width: 720px) {
  .tournament-directory-open-actions .btn-directory-pick {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tournament-player-row {
    grid-template-columns: 1.2rem auto 1fr auto;
  }

  .tournament-player-row .player-source {
    display: none;
  }

  .round-one-preview-row {
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.45rem;
  }

  .round-one-preview-row .versus {
    display: none;
  }
}
