/* Gracket-Lite: 본선리그 대진표 스타일 */

.gk {
  display: flex;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
  background: #f8f9fa;
  padding: 36px 16px 16px;
  line-height: 100%;
  position: relative;
  overflow-x: auto;
  border-radius: 6px;
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.gk-round {
  flex-shrink: 0;
  margin-right: 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gk-round:last-child {
  margin-right: 20px;
}

.gk-game {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gk-team {
  border-radius: 3px;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
  border-left: 3px solid #1a3a6b;
}

.gk-game .gk-team:nth-child(2) {
  border-left-color: #d32f2f;
}

.gk-team-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  min-height: 32px;
  background: #fff;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 3px 3px 0;
  min-width: 150px;
}

.gk-winner-row {
  background: #fff9c4 !important;
  border-color: #f9a825;
}

.gk-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 4px;
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  color: #fff;
  background: #1a3a6b;
  border-radius: 2px;
  flex-shrink: 0;
}

.gk-game .gk-team:nth-child(2) .gk-seed {
  background: #d32f2f;
}

.gk-name-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.gk-name {
  font-weight: bold;
  color: #333;
  font-size: 12px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.gk-game-scores {
  font-size: 9px;
  color: #c0392b;
  font-weight: normal;
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: break-all;
  line-height: 1.3;
  margin-top: 1px;
}

.gk-team-label {
  font-size: 10px;
  color: #888;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.gk-score {
  font-weight: bold;
  font-size: 13px;
  min-width: 18px;
  text-align: center;
  color: #333;
  flex-shrink: 0;
}

.gk-score-win {
  color: #d32f2f;
}

/* 기권 */
.gk-forfeit-win {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #e67e22;
  border-radius: 3px;
  padding: 2px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gk-forfeit-lose {
  font-size: 10px;
  font-weight: normal;
  color: #999;
  background: #eee;
  border-radius: 3px;
  padding: 2px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* BYE */
.gk-bye {
  opacity: 0.4;
  border-left-style: dashed !important;
  pointer-events: none;
}

.gk-bye .gk-team-inner {
  border-style: dashed;
}

.gk-bye .gk-name {
  color: #999;
  font-style: italic;
}

/* 호버 하이라이트 */
.gk-highlight {
  border-left-color: #f59e0b !important;
  transform: translateX(2px);
  z-index: 2;
}

.gk-highlight .gk-team-inner {
  background: #fffbeb !important;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

.gk-highlight .gk-name {
  color: #92400e;
}

/* 우승자 */
.gk-champion {
  margin-top: 0;
}

.gk-champion .gk-team {
  border-left: 4px solid #f59e0b;
}

.gk-champion .gk-team-inner {
  background: linear-gradient(90deg, #fffbeb, #fff);
  border-color: #f59e0b;
  padding: 8px 12px;
}

.gk-champion .gk-name {
  font-size: 13px;
  color: #92400e;
}

.gk-champion .gk-seed {
  background: #f59e0b;
}

/* 라운드 라벨 */
.gk-label {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font-weight: bold;
  color: #fff;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #1a3a6b;
  padding: 4px 14px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10;
}

/* Canvas */
.gk-canvas {
  pointer-events: none;
  opacity: 0.5;
}

/* 스페이서 */
.gk-spacer {
  flex-shrink: 0;
}
