/* ── Tournament Write Form ── */
.t-size-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.t-size-btn {
  flex: 1;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.t-size-btn.active {
  border-color: var(--color-primary);
  background: rgba(255, 107, 74, 0.08);
  color: var(--color-primary);
}

.t-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-item-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-item-name {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
}

.t-item-img-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px dashed var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.15s;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.t-item-img-btn:hover {
  border-color: var(--color-primary);
}

.t-item-img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ── Tournament Detail Info (pre-game) ── */
.t-info-header {
  text-align: center;
  padding: 12px 0 8px;
}

.t-info-size {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-primary);
  margin: 2px 0;
}

.t-info-plays {
  font-size: 12px;
  color: var(--color-text-muted);
}

.t-stats-bar {
  margin: 12px 0 8px;
}

.t-stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.t-stats-name {
  width: 80px;
  flex-shrink: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-stats-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.t-stats-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.t-stats-count {
  width: 28px;
  text-align: right;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ── Tournament Play UI ── */
.t-play-wrap {
  padding: 4px 0;
}

.t-play-header {
  text-align: center;
  margin-bottom: 14px;
}

.t-play-round-label {
  font-size: 14px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.t-play-progress {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.t-play-battle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.t-play-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  text-align: center;
  min-height: 110px;
  width: 100%;
}

.t-play-card:hover,
.t-play-card:focus {
  border-color: var(--color-primary);
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255, 107, 74, 0.18);
  outline: none;
}

.t-play-card__img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.t-play-card__no-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.t-play-card__name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-primary);
  word-break: keep-all;
  line-height: 1.3;
}

.t-play-vs {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ── Tournament Result ── */
.t-play-result {
  text-align: center;
  padding: 16px 0 8px;
}

.t-play-result__crown {
  font-size: 44px;
  margin-bottom: 6px;
}

.t-play-result__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 700;
  margin-bottom: 4px;
}

.t-play-result__winner {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.t-play-result__img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}

.t-play-result__btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
