.tg-bracket-scroll {
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.tg-bracket-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.tg-bracket-board--tree {
  display: grid;
  grid-template-columns: repeat(var(--tg-bracket-rounds, 3), minmax(210px, 240px));
  gap: 1.4rem;
  align-items: stretch;
  min-width: max-content;
  padding: 0.25rem 0.15rem 0.5rem;
}

.tg-bracket-round {
  border: 1px solid rgba(34, 55, 70, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f9f6ef 100%);
  padding: 0.6rem;
}

.tg-bracket-board--tree .tg-bracket-round {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tg-bracket-round-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #223746;
  margin-bottom: 0.45rem;
}

.tg-bracket-board--tree .tg-bracket-round-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 55, 70, 0.06);
}

.tg-bracket-board--tree .tg-bracket-round-title small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6c757d;
}

.tg-bracket-round-matches {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tg-bracket-board--tree .tg-bracket-round-matches {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(var(--tg-bracket-slots, 1), 1fr);
  gap: 0.75rem;
  min-height: calc(var(--tg-bracket-slots, 1) * 196px);
}

.tg-bracket-match {
  border: 1px solid rgba(34, 55, 70, 0.1);
  border-radius: 10px;
  padding: 0.55rem;
  background: #fff;
}

.tg-bracket-board--tree .tg-bracket-match {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 172px;
  box-shadow: 0 4px 14px rgba(34, 55, 70, 0.06);
}

.tg-bracket-match.is-placeholder {
  background: #f8fafc;
  border-style: dashed;
}

.tg-bracket-match.is-done {
  border-color: rgba(25, 135, 84, 0.28);
}

.tg-bracket-connector {
  position: absolute;
  top: 50%;
  right: -1.45rem;
  width: 1.45rem;
  height: 2px;
  background: rgba(34, 55, 70, 0.22);
  transform: translateY(-50%);
  pointer-events: none;
}

.tg-bracket-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(34, 55, 70, 0.28);
  border-top: 2px solid rgba(34, 55, 70, 0.28);
  transform: translate(30%, -50%) rotate(45deg);
}

.tg-bracket-match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.tg-bracket-match-head strong {
  font-size: 0.76rem;
  color: #223746;
}

.tg-bracket-players {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tg-bracket-vs {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #98a2ab;
  line-height: 1;
}

button.tg-bracket-vs {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.18rem 0.35rem;
  background: #f1f4f7;
  color: #5b6b78;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

button.tg-bracket-vs:hover,
button.tg-bracket-vs:focus-visible {
  background: #223746;
  color: #fff;
  outline: none;
}

.tg-bracket-player {
  border: 1px solid rgba(34, 55, 70, 0.14);
  border-radius: 8px;
  padding: 0.32rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #223746;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.tg-bracket-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e9ecef;
}

.tg-bracket-match.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tg-bracket-match.is-clickable:hover,
.tg-bracket-match.is-clickable:focus-visible {
  border-color: rgba(34, 55, 70, 0.35);
  box-shadow: 0 8px 18px rgba(34, 55, 70, 0.12);
  outline: none;
}

.tg-bracket-pred-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.25rem 0.2rem;
}

.tg-bracket-pred-side {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.tg-bracket-pred-side.is-right {
  flex-direction: row-reverse;
}

.tg-bracket-pred-count {
  font-size: 0.68rem;
  font-weight: 800;
  color: #223746;
}

.tg-bracket-pred-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #98a2ab;
  letter-spacing: 0.04em;
}

.tg-bracket-pred-faces {
  display: flex;
  align-items: center;
}

.tg-bracket-pred-faces img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
  margin-left: -6px;
  background: #dee2e6;
}

.tg-bracket-pred-faces img:first-child {
  margin-left: 0;
}

.tg-bracket-pred-more {
  margin-left: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #6c757d;
}

.tg-series-players-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.tg-series-players-vs {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-series-players-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #edf1f4;
  border: 1px solid rgba(34, 55, 70, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7a8792;
}

.tg-series-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(34, 55, 70, 0.1);
  border-radius: 14px;
  padding: 1rem 0.85rem 0.9rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 0 rgba(34, 55, 70, 0.03);
}

.tg-series-player-card.is-empty {
  color: #98a2ab;
  background: #fafbfc;
  justify-content: center;
  min-height: 11rem;
}

.tg-series-player-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #dfe7ee, #f8fafc);
  margin-bottom: 0.55rem;
}

.tg-series-player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e9ecef;
  border: 2px solid #fff;
}

.tg-series-player-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}

.tg-series-player-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  color: #223746;
}

.tg-series-player-meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #8a97a3;
  line-height: 1.35;
}

.tg-series-player-stats {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: #f6f8fa;
  font-size: 0.72rem;
  color: #5b6b78;
  line-height: 1.35;
}

.tg-series-player-stats em {
  font-style: normal;
  font-weight: 700;
  color: #6c7a86;
}

.tg-series-player-profile-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(34, 55, 70, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #344756;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tg-series-player-profile-btn:hover {
  background: #f3f6f8;
  border-color: rgba(34, 55, 70, 0.28);
  color: #1d2f3c;
}

.tg-series-h2h {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid rgba(34, 55, 70, 0.06);
}

.tg-series-h2h > div {
  display: grid;
  gap: 0.2rem;
}

.tg-series-h2h > div:last-child {
  text-align: right;
}

.tg-series-h2h strong {
  font-size: 0.9rem;
  color: #223746;
}

.tg-series-h2h span {
  font-size: 0.92rem;
  font-weight: 800;
  color: #344756;
}

.tg-series-h2h-mid {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a8792;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(34, 55, 70, 0.08);
}

.tg-series-h2h-foot {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #8a97a3;
}

.tg-series-predict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.tg-series-predict-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(34, 55, 70, 0.1);
  border-radius: 12px;
  padding: 0.8rem 0.75rem 0.75rem;
  background: #fff;
  min-height: 100%;
}

.tg-series-predict-card.is-mine {
  border-color: rgba(25, 135, 84, 0.4);
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.08), rgba(25, 135, 84, 0.03));
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.08);
}

.tg-series-predict-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.tg-series-predict-head strong {
  color: #223746;
  font-weight: 800;
}

.tg-series-predict-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: #6c7a86;
  font-variant-numeric: tabular-nums;
}

.tg-series-face-stack {
  display: flex;
  align-items: center;
  min-height: 30px;
  flex: 1;
}

.tg-series-face-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #dee2e6;
  box-shadow: 0 0 0 1px rgba(34, 55, 70, 0.06);
}

.tg-series-face-stack img:first-child {
  margin-left: 0;
}

.tg-series-face-more {
  margin-left: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6c757d;
}

.tg-series-predict-btn {
  margin-top: 0.7rem;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(34, 55, 70, 0.16);
  border-radius: 8px;
  background: #2c3e4c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.tg-series-predict-btn:hover {
  background: #223746;
  color: #fff;
}

.tg-series-predict-btn.is-active {
  background: #198754;
  border-color: #198754;
}

.tg-series-predict-btn.is-active:hover {
  background: #157347;
}

.tg-series-predict-mine-tag {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #146c43;
}

.tg-series-predict-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-top: 0.7rem;
}

.tg-series-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: #f6f8fa;
  font-size: 0.78rem;
  color: #5b6b78;
  line-height: 1.35;
}

.tg-series-note.is-mine {
  background: rgba(25, 135, 84, 0.08);
  color: #1f5135;
}

.tg-series-note.is-mine strong {
  color: #146c43;
}

.tg-series-note.is-mine span {
  color: #5f8a70;
  font-size: 0.72rem;
}

.tg-series-note a {
  font-weight: 700;
  color: #223746;
}

.tg-series-predict-total {
  font-size: 0.75rem;
  color: #8a97a3;
  margin-left: auto;
}

.tg-series-predict-total strong {
  color: #5b6b78;
  font-variant-numeric: tabular-nums;
}

.tg-series-empty {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f6f8fa;
  border: 1px dashed rgba(34, 55, 70, 0.12);
  font-size: 0.8rem;
  color: #8a97a3;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .tg-series-players-grid,
  .tg-series-predict-grid {
    grid-template-columns: 1fr;
  }

  .tg-series-players-vs {
    padding: 0.15rem 0;
  }

  .tg-series-predict-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-series-predict-total {
    margin-left: 0;
  }
}

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

.tg-bracket-player-score {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: #495057;
}

.tg-bracket-player.is-empty {
  color: #97a1aa;
  font-weight: 600;
  background: #f8fafc;
}

.tg-bracket-player.is-winner {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.35);
  color: #146c43;
}

.tg-bracket-player.is-loser {
  opacity: 0.55;
}

.tg-bracket-meta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}

.tg-bracket-feeds {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  color: #6f42c1;
  font-weight: 700;
}

.tg-bracket-winner {
  margin-top: 0.3rem;
  color: #146c43;
}

.tg-bracket-series-score {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #223746;
}

.tg-bracket-schedule {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.22rem;
}

.tg-bracket-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #5b6b78;
  background: #f7f9fb;
  border-radius: 6px;
  padding: 0.22rem 0.4rem;
}

.tg-bracket-schedule-item.is-completed {
  color: #146c43;
  background: rgba(25, 135, 84, 0.08);
}

.tg-bracket-schedule-item.is-ongoing {
  color: #856404;
  background: rgba(255, 193, 7, 0.14);
}

.tg-bracket-schedule-when {
  min-width: 0;
  font-weight: 700;
}

.tg-bracket-schedule-result {
  flex-shrink: 0;
  font-weight: 800;
}

.tg-series-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-series-modal-hero {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #f8fafc 0%, #eef3f7 100%);
  border: 1px solid rgba(34, 55, 70, 0.08);
}

.tg-series-modal-kicker {
  font-size: 0.75rem;
  color: #8a97a3;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.tg-series-modal-slot {
  font-size: 1.08rem;
  font-weight: 800;
  color: #223746;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.tg-series-modal-vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.75rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #223746;
}

.tg-series-modal-vs-row strong {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #98a2ab;
}

.tg-series-modal-vs-row .is-winner {
  color: #146c43;
}

.tg-series-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.55rem;
}

.tg-series-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5b6b78;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(34, 55, 70, 0.08);
}

.tg-series-chip.is-score {
  color: #1d4f91;
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.14);
}

.tg-series-chip.is-winner {
  color: #146c43;
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.18);
}

.tg-series-modal-section {
  border-top: 1px solid rgba(34, 55, 70, 0.07);
  padding-top: 0.95rem;
}

.tg-series-modal-section.is-last {
  padding-bottom: 0.15rem;
}

.tg-series-modal-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #223746;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

.tg-series-modal-section-title i {
  width: 1rem;
  text-align: center;
  color: #6c7a86;
  font-size: 0.82rem;
}

.tg-series-modal-games {
  display: grid;
  gap: 0.5rem;
}

.tg-series-modal-game {
  display: block;
  border: 1px solid rgba(34, 55, 70, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
}

.tg-series-modal-game.is-completed {
  background: #fbfcfd;
}

.tg-series-modal-game.is-ongoing {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 243, 205, 0.35);
}

.tg-series-modal-game.is-cancelled {
  opacity: 0.72;
  background: #fafbfc;
}

.tg-series-modal-game-main {
  min-width: 0;
  flex: 1;
}

.tg-series-modal-game-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #223746;
  line-height: 1.25;
}

.tg-series-modal-game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tg-series-modal-game-when {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5b6b78;
  line-height: 1.35;
}

.tg-series-modal-game-players {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.tg-series-modal-game-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.88rem;
}

.tg-series-modal-game-player.is-winner {
  background: rgba(25, 135, 84, 0.1);
  color: #146c43;
}

.tg-series-modal-game-player-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-series-modal-game-meeple {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.tg-series-modal-game-score {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: #495057;
}

.tg-series-modal-game-player.is-winner .tg-series-modal-game-score {
  color: #146c43;
}

.tg-series-modal-game-winner {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #146c43;
}

.tg-series-modal-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

#tg-bracket-series-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18, 32, 42, 0.22);
}

#tg-bracket-series-modal .modal-header {
  padding: 0.9rem 1.1rem;
  border-bottom-color: rgba(34, 55, 70, 0.08);
}

#tg-bracket-series-modal .modal-title {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

#tg-bracket-series-modal .modal-body {
  padding: 1rem 1.1rem 1.05rem;
}

#tg-bracket-series-modal .modal-footer {
  padding: 0.7rem 1.1rem;
  border-top-color: rgba(34, 55, 70, 0.08);
}

#tg-bracket-series-modal .modal-footer .btn {
  min-width: 4.5rem;
  border-radius: 8px;
  font-weight: 700;
}

.tg-bracket-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tg-waiting-list {
  border-top: 1px dashed rgba(34, 55, 70, 0.2);
  padding-top: 0.7rem;
}

@media (max-width: 767.98px) {
  .tg-bracket-board--tree {
    gap: 1rem;
  }

  .tg-bracket-connector {
    display: none;
  }
}

.tg-match-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 55, 70, 0.1);
  background: linear-gradient(135deg, #fff 0%, #faf8f4 100%);
  box-shadow: 0 4px 14px rgba(34, 55, 70, 0.05);
}

.tg-match-card.is-mine {
  border-color: rgba(25, 135, 84, 0.28);
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  box-shadow: inset 3px 0 0 #16a34a, 0 4px 14px rgba(34, 55, 70, 0.06);
}

.tg-match-card.is-completed {
  border-color: rgba(73, 80, 87, 0.14);
  background: linear-gradient(135deg, #f4f6f8 0%, #e9eef2 100%);
  box-shadow: 0 3px 10px rgba(34, 55, 70, 0.04);
  opacity: 0.92;
}

.tg-match-card.is-completed.is-mine {
  border-color: rgba(25, 135, 84, 0.22);
  background: linear-gradient(135deg, #eef5f1 0%, #e2ece7 100%);
  box-shadow: inset 3px 0 0 #6b9f7a, 0 3px 10px rgba(34, 55, 70, 0.04);
}

.tg-match-card.is-cancelled {
  border-color: rgba(132, 32, 41, 0.12);
  background: linear-gradient(135deg, #faf5f5 0%, #f3e8e8 100%);
  opacity: 0.9;
}

.tg-match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.tg-match-round {
  font-size: 0.88rem;
  font-weight: 800;
  color: #223746;
}

.tg-match-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.tg-match-status.is-scheduled { background: #e9ecef; color: #495057; }
.tg-match-status.is-ongoing { background: #fff3cd; color: #856404; }
.tg-match-status.is-completed { background: #dee2e6; color: #495057; }
.tg-match-status.is-cancelled,
.tg-match-status.is-disputed { background: #f8d7da; color: #842029; }

/* ── 미니 대진표 모달 ─────────────────────────────────────────────── */
.tg-mini-bracket-wrap {
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.tg-mini-bracket {
  display: grid;
  grid-template-columns: repeat(var(--tg-mini-rounds, 3), minmax(148px, 1fr));
  gap: 0.75rem 0.9rem;
  min-width: min(100%, calc(var(--tg-mini-rounds, 3) * 156px));
  align-items: stretch;
}

.tg-mini-round {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tg-mini-round-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #223746;
  letter-spacing: -0.02em;
}

.tg-mini-round-title small {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8a97a3;
}

.tg-mini-round-matches {
  display: grid;
  grid-template-rows: repeat(var(--tg-mini-slots, 1), 1fr);
  gap: 0.45rem;
  flex: 1;
}

.tg-mini-match {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 55, 70, 0.12);
  background: #fff;
  box-shadow: 0 1px 0 rgba(34, 55, 70, 0.03);
  min-height: 4.4rem;
}

.tg-mini-match.is-placeholder {
  background: #f7f9fb;
  border-style: dashed;
}

.tg-mini-match.is-completed {
  background: #fbfcfd;
}

.tg-mini-match.is-ongoing {
  border-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 243, 205, 0.35);
}

.tg-mini-match.is-openable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tg-mini-match.is-openable:hover,
.tg-mini-match.is-openable:focus-visible {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
  outline: none;
}

.tg-mini-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #6c7a86;
}

.tg-mini-status {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  background: #e9ecef;
  color: #495057;
}

.tg-mini-status.is-ongoing { background: #fff3cd; color: #856404; }
.tg-mini-status.is-completed { background: #d1e7dd; color: #146c43; }
.tg-mini-status.is-cancelled,
.tg-mini-status.is-disputed { background: #f8d7da; color: #842029; }

.tg-mini-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.2rem;
  align-items: center;
}

.tg-mini-player {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: #223746;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-mini-player:last-child {
  text-align: right;
}

.tg-mini-player.is-empty {
  color: #98a2ab;
  font-weight: 700;
}

.tg-mini-player.is-winner {
  color: #146c43;
}

.tg-mini-vs {
  font-size: 0.62rem;
  font-weight: 800;
  color: #8a97a3;
  text-align: center;
  min-width: 1.6rem;
}

.tg-mini-vs strong {
  color: #1d4f91;
  font-variant-numeric: tabular-nums;
}

.tg-mini-winner,
.tg-mini-when {
  font-size: 0.64rem;
  font-weight: 700;
  color: #6c7a86;
  line-height: 1.25;
}

.tg-mini-winner {
  color: #146c43;
}

#tg-mini-bracket-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18, 32, 42, 0.22);
}

#tg-mini-bracket-modal .modal-body {
  padding: 0.9rem 1.1rem 1.05rem;
}

@media (max-width: 767.98px) {
  .tg-mini-bracket {
    grid-template-columns: repeat(var(--tg-mini-rounds, 3), minmax(132px, 148px));
  }
}
