.gm-section {
  min-width: 0;
  margin-top: 20px;
}

.gm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gm-heading h2 {
  margin: 0;
  font-size: 16px;
}

.gm-resolve {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--tour-green);
  border-radius: 6px;
  background: var(--tour-green);
  color: var(--tour-white);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gm-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--tour-line);
  background: var(--tour-white);
  scrollbar-color: var(--tour-green) var(--tour-ground);
  scrollbar-width: thin;
}

.gm-scroll:focus-visible {
  outline: 3px solid var(--tour-accent);
  outline-offset: 2px;
}

.gm-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.gm-table th,
.gm-table td {
  min-width: 86px;
  padding: 9px 10px;
  border-right: 1px solid var(--tour-soft-line);
  border-bottom: 1px solid var(--tour-soft-line);
  text-align: center;
  vertical-align: middle;
}

.gm-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--tour-ground);
  color: var(--tour-ink);
  font-weight: 600;
}

.gm-table .gm-corner,
.gm-table .gm-player {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 180px;
  min-width: 180px;
  max-width: 280px;
  text-align: left;
  background: var(--tour-white);
}

.gm-table .gm-corner {
  z-index: 4;
  background: var(--tour-ground);
}

.gm-table tbody tr:last-child > * {
  border-bottom: 0;
}

.gm-table tr > *:last-child {
  border-right: 0;
}

.gm-player {
  display: table-cell;
  font-weight: 600;
}

.gm-player .draw-identity { display: inline-flex; max-width: calc(100% - 38px); vertical-align: middle; }
.gm-player .draw-portrait-wrap,.gm-player .draw-portrait { width: 30px; height: 30px; flex-basis: 30px; }
.gm-player .draw-initials { font-size: 10px; }
.gm-player .draw-player-name { overflow-wrap: anywhere; white-space: normal; }

.gm-seed {
  display: inline-block;
  min-width: 24px;
  margin-right: 7px;
  color: var(--tour-muted);
}

.gm-player-name {
  overflow-wrap: anywhere;
}

.gm-table thead th span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  background: var(--tour-pale);
  color: var(--tour-green);
}

.gm-cell {
  display: inline-block;
  color: var(--tour-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: normal;
  max-width: 180px;
}

.gm-cell:hover {
  text-decoration: underline;
}

.gm-cell-pending {
  color: #73551e;
}

.gm-cell-live {
  color: #245237;
  font-weight: 650;
}

.gm-cell-paused {
  color: #5b4d2f;
}

.gm-cell-empty,
.gm-diagonal {
  color: var(--tour-muted);
}

.gm-diagonal {
  background: var(--tour-ground);
}

.gm-stat {
  font-weight: 600;
}

.gm-tied {
  display: block;
  color: var(--tour-muted);
  font-size: 11px;
  font-weight: 400;
}

.gm-note {
  max-width: 72ch;
  margin: 8px 0 0;
  color: var(--tour-muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .gm-section {
    margin-top: 16px;
  }

  .gm-table th,
  .gm-table td {
    padding: 8px;
  }

  .gm-table .gm-corner,
  .gm-table .gm-player {
    width: 180px;
    min-width: 180px;
  }
}

.gm-scroll-hint{display:none;color:var(--tour-muted);font-size:12px;margin:8px 0}
@media(max-width:900px){.gm-scroll-hint{display:block}}
